Jump to content
  • Advertisement
Sign in to follow this  
ShinichiKudou

I have a quick question about Ogg Vorbis

This topic is 4886 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

I have most of Ogg Vorbis and OpenAL working fine. Right now, I want to implement my wrapper so it will automatically switch songs as soon as it finish playing the previous song. I've tried using ov_time_tell() and ov_time_total(), but i'm guessing i'm not using it right: if(ov_time_total(m_Stream, 1) == ov_time_tell(m_Stream)) PlayNextSong(); And I have tried using OggVorbisFile's offset and end members but that did not work for me as well. I haven't much in the OpenAL about end of playback. Can someone help me find the proper way to know when it has finished playing the music?

Share this post


Link to post
Share on other sites
Advertisement
maybe when the result of ov_read() is 0?
I have check this at all. but I also want to know if there is a way to find when the song has finished.

Share this post


Link to post
Share on other sites
i just check it out... try to check when the ov_read() returns 0. then the sound has reach the end. it works on me

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!