menu
Wwise
arrow_drop_down
Strata
arrow_drop_down
Solutions
arrow_drop_down
Apprendre
arrow_drop_down
Communauté
arrow_drop_down
Documentation
arrow_drop_down
Aide
arrow_drop_down
2024.1.5.8803
2023.1.13.8732
2022.1.19.8584
2021.1.14.8108
2019.2.15.7667
2019.1.11.7296
2018.1.11.6987
2017.2.10.6745
2017.1.9.6501
2016.2.6.6153
2015.1.9.5624
This sample plug-in allows you to play back a game player's MP3 files at runtime. You can use this source plug-in if you want to give the game player the option to replace the game music with their own MP3 files. When using this plug-in, a game player's MP3 files can be sent through the Wwise pipeline at runtime and processed by the sound engine. This means you can take full advantage of all the features and effect processing in Wwise.
Aside from the usual plug-in initialization (see Integration Details - Plug-Ins), integrating the MP3 Source plug-in requires that the game provides the full path of the MP3 file that will be played.
To facilitate this, two extra methods are exposed in AkMP3SourceFactory.h:
The current sample plugin allows you to prepare only one MP3 file at a time. Scrolling through a sound can be achieved by calling AkMP3PrepareForPlayback() with a new offset, and then stopping and then playing the same sound again using a Wwise event.
Unlike the other plug-ins, this plug-in will not search in the bank or streamed files directory. Since the MP3 is located on the game player's computer, the MP3's full path will be required so that the sound engine can prepare the sounds to be played. The sample file includes a special case: \samples\SoundEngine\Common\AkFileLocationBase.cpp, which allows this plug-in to use the streaming manager while using a complete path.
Des questions ? Des problèmes ? Besoin de plus d'informations ? Contactez-nous, nous pouvons vous aider !
Visitez notre page d'AideEnregistrez votre projet et nous vous aiderons à démarrer sans aucune obligation !
Partir du bon pied avec Wwise