Is there a way to retrieve waveform information using LibSDL for .MP3,
or .WAV files?
Thank you.
-John
Is there a way to retrieve waveform information using LibSDL for >.MP3,
or .WAV files?
What do you mean by “waveform information?” What are you trying to do?
Nicholas
Is there a way to retrieve waveform information using LibSDL for .MP3,
or .WAV files?
Uncompressed .WAV files can be read directly with a little bit of parsing.
Decoding MP3s or compressed WAVs can be done with the external SDL_sound
library, among others:
This will let you decode lots of sound formats (include .WAV and .MP3)
into the raw waveform data, either a chunk at a time or the whole thing at
once. The decoded waveform is suitable for playback by SDL or for further
processing.
–ryan.