Jump to content
  • Advertisement
Sign in to follow this  
MarcusMaximus04

Android's Soundpool-like interface for PC?

This topic is 2514 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 working on a cross-platform game(currently for ubuntu and Android) and I've gotten sound working exactly how I want it using SoundPool on the android side. I started working to try to port the code over to ubuntu and realized I don't know of a sound library that works like this for PC OS's. I looked around and haven't really found anything; the closest was OpenAL but that seems much more complicated and the effects I want(doppler, positional audio) seem to be accomplished by basically rendering the sound to a 3d scene, which won't work with my current implementation on the android side of things.

So, I was hoping someone here might know of a decent library that works this way. Basically, I just need it to be able to load in sounds(in .ogg format, preferably), provide a function for playback that also allows for looping, can change volume for each side(left/right) and pitch(relative to the original sample's pitch) in real time. It also needs to be able to play back multiple streams simultaneously.

Thanks for your help!

PS. for reference, here's Android's SoundPool documentation: http://developer.android.com/reference/android/media/SoundPool.html

Share this post


Link to post
Share on other sites
Advertisement

Take a look at irrKlang, or FMod.


Thanks. FMod is a bit too expensive for me(I'm a single, independent developer and this is for a commercial product), but irrKlang is looking like it might just work.

Maybe... though after looking through their API a bit, it seems to be missing some of the functionality I'm looking for(just being able to handle 3d sound myself by varying volume to left/right channels individually and being able to control pitch directly), and instead implements all the features for you, which doesn't really work with my current sound implementation(I'm trying to keep the android and pc code the same as much as humanly possible)

Also, I *was* hoping for a free-to-use package, but I suppose that might be an impossibility outside the mobile app realm. If so, I might have to wait on the eventual PC release, until the android side can build up some funds. So far, I've gotten away with not paying anything for this game and I'd like to keep it that way until I can be sure I can get a return on investment.

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!