Sign in to follow this  

Music playback options for a C#/MDX game

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

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