AVI Audio Stream

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

AVI Audio Stream

Postby vdecampo » Aug 22, 2007 18:33

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:

Postby sir_mud » Aug 23, 2007 0:04

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: 2982
Joined: Aug 07, 2007 23:20
Location: Maryland, USA
Contact:

Postby vdecampo » Aug 23, 2007 3:05

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

Return to “Windows”

Who is online

Users browsing this forum: No registered users and 7 guests