Playing Music and Sounds w/o DirectX

Darc

Well-known member
Joined
Apr 18, 2003
Messages
89
Im making a simple frame for a game Im working on, and Id like some simple Music and Sound in it. Ive tried PlaySound but it doesnt seem to be able to do two sounds at once (maybe Im just using it wrong) Is there a way to do this without DirectX? (I just dont want to have to make DirectX 9.0 mandatory to play my little game)
 
Machaira said:
Slight exaggeration there?! :-\ :)

Have you tried it? I was playing 300 mod files with each 24 channels before I brought this thing to its knees on my P4 2 GHz nothing fancy. So No, I am not exaggerating too much.

Honestly
 
Machaira said:
thousands of sounds at once != 300 :)

Ill have to take a look at it though.

300 *24 stil is 7200 while maybe not at once, since not all channels play at the same time, I think its impresive

The thing can play 1024 sounds at once
 
Yes I can but I am at work for the next 9 hours. I can program here but not test sound... Ill Post a little project over the weekend.
 
Sorry for keeping you waiting but this weekend was hectic. (Read girlfriend needed me and I love her even more than this place)

I converted the simple example from the fmod samples from vb6 to VB.net. I admit to using the upgrade wizard that actually did a half decent job for once :)

I believe most errors were removed from the api declarations and I think you can figure out any mistakes. If you can
 

Attachments

Thanks for the sample project. But, I will not try it (at the moment) because am moving to DirectX and I will try Directsound instead. However, if Directsound does not fits my needs I will look at this project of yours...
 
Had a quick look at it and it does seem pretty easy. Also quickly updated the project to remove the vb6 / COM dependancies just to make it that bit easier to use.
 

Attachments

PlausiblyDamp said:
Had a quick look at it and it does seem pretty easy. Also quickly updated the project to remove the vb6 / COM dependancies just to make it that bit easier to use.

Thanks PlausiblyDamp for cleaning out the code
 
Back
Top