View previous topic - View next topic |
Author |
Message |
Gardon Scholar
Joined: 05 Feb 2006 Posts: 157
|
Posted: 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
|
Posted: 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
|
Posted: 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
|
Posted: 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
|
|
Back to top |
|
|