0
0

I’m currently attempting to add video playback to an application of mine. Each frame I get a chunk of visual data and audio data that I need to deal with. Basically, I get a very small amount of audio data each frame, and I’m wondering what the correct way, if any, to deal with this is. I have a few ideas as to how to make it work, but I’ll be the first to admit they’d be fairly ignorant solutions. I’d really prefer to deal with this an as elegant a manner as possible.

Anyways, thanks in advance for any help!

  • You must to post comments
0
0

Check out the usercreatedsound example that comes with the API install. It should help get you started.

As a side note, I think you’re going to run into trouble if you try to literally decompress a frame, play a frame, decompress, etc. People’s ears are pretty intolerant of skips/gaps but people’s eyes are pretty ok with them, so usually you want to write your program in such a way that you always have enough data to keep the audio continuous and then decode and sync your video to your audio playback.

Video playback is very much a "solved problem" and while I don’t have any idea what your application is, I’d generally recommend people check out existing video solutions rather than trying to roll their own.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.