-
Sound problem...
Ok, I am sorry for making new thread for this but I found nothing in a search. if I use this function to play a sound.
Code:
mciSendString ( "Play song.mid", 0, 0, 0 );
is there any way to preload the song, so the program doesnt have to load during run-time? I dont mind with .mid files, there isnt any delay there, but with mp3 or wav I need them to be preloaded to be able to have split second song play. Well thank you for any help you may provide.
-
DirectAudio offers much more flexibility with sound and may be easier to use. Other than that all I can say is consult the multi-media portion of the Platform SDK.
-
hmmm... I might try to figure out direct audio... DirectX is so complicated though, but thanks for the reply. Ill try it, and see waht happens
-
problem...
Ok, well umm do I have to use MSVC++ to be able to use DirectX? Casue it isnt working...
-
-
Gee Bubba, that's real helpful.
-
Well since we don't have an animation of a person's jaw dropping on the floor and the forum won't accept just 3 dots or so, I used about 12.
-
... I have a feeling that niether of those comments helped, and I am not sure what to do. I installed the DirectX9.0 SDK, and linked the libraries, and include, folders, but I get one error in particular, it says WLOOP changes the meaning of struct member WLOOP, so if that helps any please respond.
-
Well since your second post has not addressed any specific problem with DirectSound, how do you expect me to help you? DirectMusic/Sound is huge. There are a bunch of ways to do play sounds, music, etc. I have no way of knowing how you setup DirectMusic or DirectSound to work, no idea about what you are actually trying to do other than just play a sound.
If you really want the answers you seek I suggest purchasing DirectX 9 Audio Exposed on www.amazon.com. It's only about 20 to 25 dollars and well worth every penny of it.
It will answer far more than I ever could in one thread. In fact I'd say it's impossible to explain DirectAudio in one thread.
-
Well, I used the example code , and just changed the filepaths, but it didnt work, and I guess Ill buy that and see how it works, thanks forthe help bubba
[edit]
should I install the retail or debug version ( that might have something to do with it)
[/edit]