Skip to main content
gamedev.net
🔒 Locked

DirectX Audio

Started by AndyTX Dec 18, 2002 at 7:05 PM 2 replies 350+ views
Original Post
AndyTX
AndyTX
Hey guys I''ve got a few questions for which I can''t find good answers on the web, SDK or otherwise and I was hoping that someone had had more experience with this than me. Right now I have a game that uses DirectSound (DX7-type implementation) and I also have code to play MIDIs with DirectMusic (again, the DX7 way where you pass the DSound object to DMusic). However I''m not very happy with the ingame performance of DirectMusic as it does produce some nominal jitter even in a game optimized to run over 700fps most of the time on my set up. I''m pretty happy with the sound code... it loads in WAVs, generates duplicates and plays them all without any static, hiccups or slowdown at all. However once Music is added to the equation, it still tends to run up in the 700fps range, but just jitters (tends to hiccup) a tiny bit... maybe one or two long frames every second. It''s not THAT bad; most wouldn''t notice it at all, but I''m unhappy with it Thus I started looking into DX8 with hopes that its combined implementation would solve or at least help my problem, as well as just being more up to date with the implementation. It looks pretty solid, but I still can''t find some basic stuff like how to replicate buffers, etc. on the new implementation (without a direct DSound/DMusic interface object). Can anyone point me to a good tutorial for the new sound architecture in a GAME-type setting? Prefereably one that uses both MIDIs and WAVs. Secondly, will switching gain me anything at all? Lastly, what are my other options? I don''t really want to go to another sound system especially since the main point in using DMusic is to make sure that it sounds the same on all computers... Any help or insight would be greatly appreciated. Thanks in advance!
AndyTX
AndyTX
Has no one had any experience with this? I admit that surprises me... I have so very little sound experience that I was hoping for some advice.
John Reynolds
John Reynolds
DirectMusic is a good route to take, and improves with each new version. However, the performance has always been a little disappointing but hopefully MS will have addressed this in DX9. There are other options available to you which will provide a consistant sound across PCs, but it seems you are quite familiar with both DirectSound and DirectMusic now anyway.

I used the "DirectX Audio C++ Tutorials" which came with the DX SDK to learn how to use it. I thought these were easy to follow and provided a good foundation upon which to build.

Do consider using a combination of DirectSound and DirectMusic. DirectSound has, in the current version of DX, much better performance (lower latency). The two work together quite well so you can use the benefits of each system.

I hope this helps.

Cheers,
John
John ReynoldsCreative Asylum Ltdwww.creative-asylum.com
AndyTX
AndyTX
Yes it does actually thanks. I think that is the way that I want to go, but I''m just not too happy with DirectMusic performance and was hoping that I''m just doing something wrong with the integration between the two... maybe I''ll see what DX9 does to it in a few days

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.