Jump to content
  • Advertisement
Sign in to follow this  
_Flecko

Music playback options for a C#/MDX game

This topic is 4812 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've spent a few hours today searching for music playback options for a C#/Managed DX game, and nothing satisfactory has come up. I like DirectSound, but I can't use compressed formats like OGG or MP3, and DirectShow would be fine but I can't get it to loop seamlessly. Does anyone have any suggestions for a solution that will let me use compressed audio (pref. ogg) -and- loop? Thanks, Max

Share this post


Link to post
Share on other sites
Advertisement
Well, depends on what you are looking for... You could use a C# Fmod wrapper (if you are a) releasing a free app or b) willing to spend the license fee for it)

Or, you could use a managed implementation of ogg & vorbis. I was able to get a small app working decoding ogg vorbis (& theora) pretty easily... I did however use fmod, but *not* for the decoding (I used managed port of ogg/vorbis), I used it only tosend PCM to sound card. I would have used Tao.OpenAL if I didn't experience problems using it. And, I had troubles getting DirectSound working (from my lack of experience with it) effieicently.

http://www.wreckedgames.com/OggDemo.zip - Win32 Binary
http://www.wreckedgames.com/ogg.zip - Complete Source and needed lib's

It does no loop, but the code could easilybe modified to allow for looping.

Share this post


Link to post
Share on other sites
Thanks. I think I found a solution, in case anyone else with the same problem is searching and sees this thread: if you look at the FMOD forums on fmod.org, they're offering a public beta of FMOD EX, which includes a C# wrapper and lots of C# examples. The wrapper is written in a very C++ style, which is a little annoying, but it works.

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!