-
Notifications
You must be signed in to change notification settings - Fork 68
Utilities
Once you have imported a sound wave, you can export it to memory or a file in one of the supported formats: OGG VORBIS
, WAV
, BINK
, RAW (PCM)
.
Note: Exporting to BINK
format is only supported on Windows x64, Mac, and Linux.
You can transcode one RAW format into another using the corresponding functions.
To obtain basic audio header information (metadata) from audio data, consider using the following functions as they are more cost-effective than the full process of importing the audio into a sound wave.
To manually determine the audio data format, you have two options. The first is based on file extension recognition, while the second method involves analyzing the audio data, which is more accurate but requires loading the audio data into memory. Note that the process is automatically performed during the import stage, so manual intervention is not necessary.
You can bind to the On Generate PCM Data delegate to get PCM data as the sound wave plays. This can be useful when analyzing audio data.
You can convert seconds (e.g. playback time) to hh:mm:ss or mm:ss format string depending on the length using this function.