社区问答

欢迎来到 Audiokinetic 社区问答论坛。在此,Wwise 和 Strata 用户可互帮互助。如需我们团队直接提供协助,请前往技术支持申请单页面。若要报告问题,请在 Audiokinetic Launcher 中选择“报告错误”选项(注意,问答论坛并不会接收错误报告)。我们内部设有专门的错误报告系统,会有专人查看报告并设法解决问题。

要想尽快得到满意的解答,请在提问时注意以下几点:

  • 描述尽量具体:比如,想达到什么样的目的,或者具体哪里有问题。
  • 包含关键细节:比如,Wwise 和游戏引擎版本以及所用操作系统等等。
  • 阐明所做努力:阐明自己为了排除故障都采取了哪些措施。
  • 聚焦问题本身:聚焦于问题本身的相关技术细节,以便别人可以快速找到解决方案。

0 投票

Hi,

I have troubles with the usage of plugins.

What I am willing to do

- Allow the user of my game to use his own mp3 as a background music

- Extract various data from the music (beat, peaks, bass, ...) and use this data into the game.

Current Configuration of my project

- MP3SourceFactory.h included

- MP3Source.lib included

- Plugin registered with RegisterPlugin

Questions

1) How can I use the MP3 plugin ?

Problem

  • AkMP3InfoRead and AkMP3PrepareForPlayback functions seems to be not exposed, so I am not able to use them into my game.

2) Is it possible to do efficient DSP through a wwise plugin ?

3) Some advices related to the "What I am willing to do" part ?

To put everything in a nutshell I would like some advanced samples , the documentation cover only the plugin itself but not its integration and the integration demo doesn't use any plugin or very basic ones.

Thank you

Cheers

 

分类:General Discussion | 用户: Kévin D. (100 分)
修改于 用户:Bernard R. (Audiokinetic)
Some atleast partial answers ?

1个回答

0 投票

Hi Kévin, 

Couple of things to clarify first is that the mp3 source plug-in works for Windows only and is mostly sample code (we've made it available as a starting point mostly). 

Maybe the missing piece to get mp3 playing in your game are the steps needed in the authoring application: 

  1. Create a Sound SFX in the Actor-Mixer Hierarchy
  2. Insert a the source plug-in Wwise MP3 Input (from the Content Editor view). 
  3. Create an Event (from the Events tab of the Project Explorer) that plays the Sound SFX you created. 
  4. Package the Event in a SoundBank. Generate the SoundBank. 
  5. In your game, make sure the SoundBank is loaded and triggers the Event. 

With these steps and the rest of the documentation on the mp3 plug-in, you should be able to hear an mp3 playing in your game. 

For the "What I'm willing to do" part of your case, you'll definitively need to 'hack' the mp3 sample code provided to add the DSP you need (e.g. beat detection, spectrum analysis, etc.). 

Hope this helps a bit, 

Simon 

用户: Simon A. (Audiokinetic) (3.6k 分)
Hi Simon,
I have a question for you related to using existing Wwise Source Plugins.  Specifically the Audio Input Plugin.  In the documentation it says all I have to do is include AudioInputSourceFactory.h in a .cpp somewhere in my game.  I'm having an issue where I get the error "Wwise: Could not find plugin dynamic library AudioInput" when I try to run my game after generating the Audio Input source from my Wwise project. Does this mean I have to follow the steps detailed in How to Create Wwise Sound Engine Source Plugins to use the Audio Input Source plugin in my game? I was under the impression that this was useful for creating completely new source plugins and this was already taken care of for the pre existing plug ins provided by AudioKinetic.
...