Jump to content
  • Advertisement
Sign in to follow this  
Dekowta

FFMPEG and Windows messages causing OpenAL to stop

This topic is 1443 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've got openAL and FFMPEG set up both with streaming and pre loading of audio data however I have a few issues with the streaming side which seems to set the openAL source to stop without implicitly calling the alSourceStop command.

 

The commands from FFMPEG that I know trigger it are av_q2d (no idea why this does it) and av_read_frame. I havent read in full detail the FFMPEG API but I have a feeling that av_read_frame may unload the any other streams currently loaded (though I hope im wrong on this) but this still doesnt really explain why it would cause any openAL sources to stop.

The other trigger to stopping the buffered openAL source is moving or scaling the window no idea why this is happening.

If anyone has any details on what could be triggering this it would be a great help otherwise going to try and dig deep into FFMPEG and OpenAL to see if I can find the problem.

Thanks

Dekowta

Share this post


Link to post
Share on other sites
Advertisement

Ok seems like I solved it myself. Have to restart the audio if its playing when its updating the stream. I did actually do it earlier but the audio was stuttering (might have had a trace there thinking about it now).

Was going to run all the audio in a thread since pre processed audio will still play when the screen is moved which could offset things so want all audio to run during the window move or resize event.

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!