Sign in to follow this  
Think128

Using native SDL audio functions

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this