Hi,
Im new to revolution, and want to write a small MP3 player, with an audio waveform.
Ive done a quick search and found the Blue Mango tools to play MP3 files, and a waveform tool, which makes me think its likely someone has also already put these together!
Before I start reinventing the wheel, does anyone know if there is a sample stack that already does this.
Thanks
Andy
MP3 Player with Audio Waveform
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 179
- Joined: Sat Apr 08, 2006 11:08 pm
- Contact:
Andy, I wrote the AudioWaveform control - but I'm afraid it only works directly with uncompressed AIFF, WAV and SD2 files.
The reason is that the data in an mp3 file is not actually audio data, in the same way that a zipped text file is not actually text. So in order to build a representation of the varying amplitude of the audio (ie. a waveform) it would be necessary to decode the mp3 data into uncompressed form.
This might actually be possible (well it certainly is, since that's what mp3 players do), but it would be necessary to decode the mp3 data into a file or variable that could then be rendered.
For instance, it might be possible to use the excellent Blue Mango external to export the mp3 as a temporary WAV file, load it into the AudioWaveform control and then delete it.
I should also warn you that the AudioWaveform control is pretty slow - on song-length files it can take a while to produce a waveform of reasonable quality.
Let us know how you get on...
Best,
Mark
The reason is that the data in an mp3 file is not actually audio data, in the same way that a zipped text file is not actually text. So in order to build a representation of the varying amplitude of the audio (ie. a waveform) it would be necessary to decode the mp3 data into uncompressed form.
This might actually be possible (well it certainly is, since that's what mp3 players do), but it would be necessary to decode the mp3 data into a file or variable that could then be rendered.
For instance, it might be possible to use the excellent Blue Mango external to export the mp3 as a temporary WAV file, load it into the AudioWaveform control and then delete it.
I should also warn you that the AudioWaveform control is pretty slow - on song-length files it can take a while to produce a waveform of reasonable quality.
Let us know how you get on...
Best,
Mark
Re: MP3 Player with Audio Waveform
Mark,
I know this thread is quite old, but I was wondering if that waveform display is available still. I am writing a program that will utilize 'blocks' of audio and your waveform display is PERFECT.
How can I license or use this in my app?
Mike
I know this thread is quite old, but I was wondering if that waveform display is available still. I am writing a program that will utilize 'blocks' of audio and your waveform display is PERFECT.
How can I license or use this in my app?
Mike