• Advertisement
Sign in to follow this  

Your suggestions for a good cross platform sound API for games

This topic is 971 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'm currently using SDL2 for my OpenGL engine along with it's sound mixer. It works and is easy to use but I notice a very slight delay when audio is played. I don't notice this same delay in Linux. This annoys me just enough to start looking at other audio API packages.

 

Any suggestions?

Share this post


Link to post
Share on other sites
Advertisement

ummm, never mind. Even though I've searched this topic many times, I finially found the reason foir the delay. When initializing the mixer, be sure to use a higher frequency like 44100 and a smaller chunk size like 2048. I was using a chunk size of 4096. Higher chunk sizes and lower frequencies increase latency. Had no idea.

Share this post


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

  • Advertisement