Archived

This topic is now archived and is closed to further replies.

DirectSound problems.

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

The problem is that everything is set up correctly, or so it would seem, but when I try to play my file, all I get is static from the speakers. Would anybody know what is causing this problem?

Share this post


Link to post
Share on other sites
You could check if the file you are loading is wrecked.
Or if you are loading the file "manually" there could be some tiny bug when handling chunks & co.

Im Anfang war die Tat...
Faust

Share this post


Link to post
Share on other sites
This probably means you are not loading you WAV data into the buffer correctly. The debug version of DirectX fills the soundbuffer with Static after it has been created so you can tell the buffer was created successfully. Therefore, if you are still hearing static then you can tell your audio data has not been loaded successfully.

Cheers,
John

Share this post


Link to post
Share on other sites
So how do I load the wave file correctly? I ran the program through the debugger several times, and nothing seems wrong.
The pointers that are supposed to receive the chucks of data get their data. The first one is equal to the size of the file, the second one receives nothing. Lock the buffer, copy the data into the it, and then unlock it. I don''t see whats wrong.

Share this post


Link to post
Share on other sites
Ok, I got it to load one wave. Teleport wave from TOTWGPG, but I can''t get it to load another. The voc_holyshit.wav from Quake III
Arena. I''ve modified it using Windows Sound Recorderso it would be mono, and play at 11025hz.The first sound plays like you would expect it, but I still get static when playing voc_holyshit.wav. That is so odd.

Share this post


Link to post
Share on other sites