Jump to content
  • Advertisement
Sign in to follow this  

ACM Win32API for adding audio to an AVI

This topic is 4853 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi. I create an AVi from a sequence of bitmap using the AVIStreamWrite method and it works great, the problem is when I try to add audio it doesn't work well, I use the ACM methods to compress the audio buffer and then I try to add it to the first frame also with the function AviStreamWrite, and I get bizzard results, if the WAVEFORMATEX is of size 18 (meaning, no additional information by the codec) it works great!, but if there is additional infomation (cbsize >0) the audio is added to the avi (I can see that the avi is larger), but when I play it I can't hear anything. btw: I compress the audio using DivX Codec. Also, I'm kinda having problems filling the AVISTREAMINFO structure for the audio, and also giving the right parameters for the AviStreamWrite method for the audio as well (the number of samples). any help would be more than appreciated!!

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!