RPGDXThe center of Indie-RPG gaming
Not logged in. [log in] [register]
 
What's the difference between DirectX Audio and DirectShow?
 
Post new topic Reply to topic  
View previous topic - View next topic  
Author Message
Gardon
Scholar


Joined: 05 Feb 2006
Posts: 157

PostPosted: Tue Dec 18, 2007 9:20 pm    Post subject: What's the difference between DirectX Audio and DirectShow? [quote]

I want sound effects and music within my game (so perhaps sword clinks or footstep noises for sound effects, and actual music/songs as well).

Should I use Direct Show or Direct Audio for this?
Back to top  
RedSlash
Mage


Joined: 12 May 2005
Posts: 331

PostPosted: Wed Dec 19, 2007 1:54 am    Post subject: [quote]

You need both. You need DirectShow to load and process complex music formats like mp3 or ogg, and DirectX audio (DirectSound) to play them. It is possible to skip out the DirectShow component if you write your own or use 3rd party decoders and limit yourself to basic sound operations.
Back to top  
Rainer Deyke
Demon Hunter


Joined: 05 Jun 2002
Posts: 672

PostPosted: Wed Dec 19, 2007 2:59 am    Post subject: [quote]

You need neither.

DirectShow is a high-level library that deals mostly with file format handling. Its operations depend on the set of codecs installed on the computer, which makes it somewhat unreliable across different computers. Use File-format-specific libraries like libvorbis instead.

DirectSound is a low-level audio output library. It does the job, but not as well as slightly higher-level libraries such as FMOD or OpenAL. (Note that FMOD also does file loading, so you wouldn't need libvorbis if you used FMOD.)

Both are Windows-specific. None of the alternatives I mentioned are.
Back to top  
Gardon
Scholar


Joined: 05 Feb 2006
Posts: 157

PostPosted: Wed Dec 19, 2007 4:57 am    Post subject: [quote]

Ya, I'm basically just looking to load and use sound effects. If I can get around Direct Sound then it's a plan.

I'll check out FMOD and see what it has to offer. Thank you.
Back to top  
Mattias Gustavsson
Mage


Joined: 10 Nov 2007
Posts: 457
Location: Royal Leamington Spa, UK

PostPosted: Wed Dec 19, 2007 9:11 am    Post subject: [quote]

Yeah, FMOD is nice, but not free for commercial use.

I use DirectSound and ogg/vorbis. Feel free to nick the code from my engine :D
http://www.colossusentertainment.com/DevelopmentStuff/PixieGameEngine.html
_________________
www.mattiasgustavsson.com - My blog
www.rivtind.com - My Fantasy world and isometric RPG engine
www.pixieuniversity.com - Software 2D Game Engine
Back to top  
Post new topic Reply to topic Page 1 of 1 All times are GMT
 



Display posts from previous:   
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum