Questions et réponses de la communauté

Bienvenue sur le forum de questions et réponses d'Audiokinetic, propulsé par la communauté. C'est l'endroit où les utilisateurs de Wwise et Strata s'entraident. Pour obtenir une aide directe de notre équipe, veuillez utiliser la page « Tickets de soutien ». Pour signaler un bug, utilisez l'option Bug Report dans l'Audiokinetic Launcher. (Veuillez noter que les rapports de bug soumis au forum questions-réponses seront rejetés. L'utilisation de notre système de rapport de bug dédié garantit que votre rapport est vu par les bonnes personnes et a les meilleures chances d'être corrigé.)

Pour obtenir rapidement les meilleures réponses, suivez ces conseils lorsque vous posez une question :

  • Soyez précis : qu'essayez-vous de réaliser ou quel est le problème spécifique que vous rencontrez ?
  • Pensez à inclure les détails importants : incluez des détails tels que les versions de Wwise et du moteur de jeu, le système d'exploitation, etc.
  • Expliquez ce que vous avez essayé de faire : indiquez aux autres les mesures que vous avez déjà prises pour essayer de résoudre le problème.
  • Concentrez-vous sur les faits : décrivez les aspects techniques de votre problème. Se concentrer sur le problème aide les autres personnes à trouver rapidement une solution.

0 votes

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

 

dans General Discussion par Kévin D. (100 points)
edité par Bernard R. (Audiokinetic)
Some atleast partial answers ?

1 Réponse

0 votes

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 

par Simon A. (Audiokinetic) (3.6k points)
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.
...