Here I will show you how to import audio files at runtime using the Runtime Audio Importer plugin.
First, you need to create a Runtime Audio Importer object. This can be done using the "Create Runtime Audio Importer" method.
If you want to know the percentage of the audio file import process (for example, to implement a loading screen), then you need to bind to the "OnProgress" delegate, which is available in the created Runtime Audio Importer object.
To know when the import process is complete, as well as to get the SoundWave object, you need to bind to the "OnResult" delegate, which is available in the created Runtime Audio Importer object.
To start the import process, call the "Import Audio From File" method. You should fill a "File Path" and "Format" properties, which are described here.
After the import is finished, you will receive the required SoundWave from the "OnResult" delegate described above.