AVI Audio Stream

Windows specific questions.
Post Reply
vdecampo
Posts: 2992
Joined: Aug 07, 2007 23:20
Location: Maryland, USA
Contact:

AVI Audio Stream

Post by vdecampo »

Does anyone have an example of playing back the audio stream from an AVI file. I have used the AVI library to extract the frames from an AVI file but I have never tried playing back the audio.

I assume the audio data is in PCM format since the video data comes back already decompressed. If thats the case, is there a way to play PCM data from memory?

Thanks in advance.
-Vince
sir_mud
Posts: 1401
Joined: Jul 29, 2006 3:00
Location: US
Contact:

Post by sir_mud »

AFAIK the AVI container format can contain any kind of audio, not just PCM. For example, Divx and Xvid video both generallly use mp3 audio but can use others too.
vdecampo
Posts: 2992
Joined: Aug 07, 2007 23:20
Location: Maryland, USA
Contact:

Post by vdecampo »

The AVI Library invokes the necessary audio/video decoders automatically and return a DIB for each frame as well as the decoded audio stream. I assume an uncompressed audio stream will be in PCM format, so I am really looking for a way to play a PCM buffer.

It looks like there are some functions in FBSound that would allow me to create an empty wave and fill the buffer manually. I just thought there might be some free code floating around the BB that would save me some time.

Plagiarism is the most sincere form of flattery! :=)

-Vince
Post Reply