Sound wave properties
You can retrieve the entire PCM buffer from a sound wave directly.
To create a seamless audio loop, you can set looping to automatically rewind the sound wave playback time to zero and play after playback ends.
You can adjust the volume of the sound being played to suit your needs.
You can also modify the pitch of the sound being played to your preference.
You can set subtitles, namely, define the text and the time at which they should be displayed.
You can set the virtualization mode, such as Play When Silent, which allows the sound wave to continue playback even during silence. This is particularly helpful if you're using sound attenuation.
If you need to change the sample rate or number of channels in the imported sound wave, you can use the appropriate functions to resample and mix the audio data. This will modify the entire sound wave data and affect the output from the OnGeneratePCMData
and OnPopulateAudioData
delegates accordingly.
Or, if you want to automatically resample and mix all the upcoming audio data to be populated to the specified desired sample rate and number of channels, you can use the following functions (this will also affect the output from the OnGeneratePCMData
and OnPopulateAudioData
delegates accordingly).