Jump to content
  • Advertisement
Sign in to follow this  
Think128

Using native SDL audio functions

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

How do the native SDL audio functions work? What do I put in a callback function? Any good tutorials out there on how to use them? They have horrible documentation by the way :\

Share this post


Link to post
Share on other sites
Advertisement
The native SDL audio functions are very low-level. Take a look at this entry in the SDL documentation for an example of how to use it. I'm not sure if it's a complete example or not. Not much is really done with the raw audio functions, most people just use a 3rd party lib, such as SDL_Mixer or SDL_Sound. Since they are open source, you may want to take a look at those libraries, since they are just wrappers for the SDL native functions. This subject is briefly covered in the book "Focus on SDL". The overall message though is not to use the native functions [wink] Good luck!

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!