Sign in to follow this  

Sound lib for FreeBSD ?

This topic is 4374 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 everyone, I'm developing an audio player for FreeBSD, and I'm looking for and audio lib (I came across SDL_sound, but I'm having trouble finding much documentation or many examples). Can anybody help me, be it either with SDL_sound or other, I'm really having trouble here :/ Thanks

Share this post


Link to post
Share on other sites
SDL_Sound is dependant on several other libraries including MikMod, ModPlug, SMPEG, and others. If you are going to use MikMod then you are just as well off using SDL_Mixer instead. What file formats are you trying to play?

Share this post


Link to post
Share on other sites
I'm trying to play MP3 and WAV formats to start off.

My biggest problems are 1) that I'm not sure whether I can compile a .c file using SDL_sound using gcc (C++ only, perhaps?), and 2) I'm not sure I know all the dependencies, and am furthermore not sure of how to include these libraries or link them in my compiling line*.

Can somebody help me ? :/
________________________________________________
* [gcc -I/usr/local/include/SDL11 test1.c -o test] ?

Share this post


Link to post
Share on other sites
Depending on what this project is for, I'd suggest you take a look into using FMOD. If that's not what you need (license/etc...), then the next thing I'd reccomend is looking into looking at SDL_Mixer as samuraicrow suggested. The docs are here and you can look at a starting example here as well (which make be a little more 'extra' than simple base code).

Share this post


Link to post
Share on other sites
Thanks for the quick reply, I took a look at FMOD (which I had used for Windows), but the only way to get it working on FreeBSD is to emulate it, and I'm looking for an easier solution.

I'm interested in making an audio media player.

Should I be posting this in another forum section ? Perhaps does someone have suggestions as to where I should ask these questions ?

Share this post


Link to post
Share on other sites
The Alternative Game APIs forum might be better suited. And gcc handles both C and C++ files. As for the dependencies, they should be listed in the SDL_Sound documentation, and really it's just a case of installing them and then using the appropriate makefile (usually). When it comes to your end program you don't usually need to worry about SDL_Sound's dependencies, just SDL_Sound. Distribution is where it gets slightly awkward.

Share this post


Link to post
Share on other sites

This topic is 4374 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.

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