done by [EviL]
logo done by [EviL] :: send your logos to us and be a popstar !




DirectSound vs. mmsystem
category: music
go to page of 1  
I see a lot of players are using the standard multimedia functions instead of DirectX. What are the advantages of using mmsystem instead of DirectSound8?
added on the 2012-05-31 17:06:47 by Mindcooler  
Mindcooler
Parties? I'm pretty sure I chose Music. That's what you get for not previewing first.
added on the 2012-05-31 17:07:56 by Mindcooler  
Mindcooler
If you're only playing back a media file (which means latency doesn't matter, you know what will happen when in advance anyway) MMSystem is the easier to use API. And for all low latency scenarios there are now better APIs around (first and foremost WASAPI but also WDM if you're masochistic).

FWIW, DirectSound should be relegated to the landfill of history where it rightfully belongs. The slightly shorter latency doesn't make up for the fact that it was one of the most ill-advised API designs ever.
added on the 2012-05-31 17:18:44 by kb_  
kb_
(forgot to mention XAudio2 which could have been usable but has at least one fatal design flaw and furthermore was abandoned before they could fix totally unimportant bugs like "crashes if you plug out the headphones" :|)
added on the 2012-05-31 17:21:24 by kb_  
kb_
DirectSound is still a pretty good "all-round" solution though. It works better than MMSystem as far as "fire and forget" goes in my experience.
added on the 2012-05-31 17:27:47 by Gargaj  
Gargaj
I had a look before at XAudio2, and it was horrible. Perhaps should take a look at WASAPI.

But for the moment, DirectSound8 for low-latency and MMSYS for large pre-rendered buffers and/or small codesize?
added on the 2012-06-01 19:40:24 by Mindcooler  
Mindcooler
go to page of 1  

post a new reply
You need to be logged in to post a new reply :: register here





pouët.net 0.9-a9e6b6e © 2000-2013 mandarine - hosted on scene.org
send comments and bug reports to webmaster@pouet.net - contribute on GitHub
page created in 0.018479 seconds.