Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Simply - I have just integrated SOUND into my game and encountered an amusing situation...

 

My first approach was via DIRECTSOUND, it requires some setting up but after that worked perfectly for my .WAV files. Problem is I also wanted to play MIDI files and I heard AudioVideoPlayback was able (which it is, sometimes)...

 

So I switched over and tried AudioVideoPlayback but to my surprise I found an odd delay/lag on the first time it is used (chokes on the first time I create an Audio via "Audio a = new Audio("Sounds\\Effects\\" + sSound, false); Audio.Play()")...

 

So, question is simple - which of the two are better for gaming purposes?

I don't care about effects and funky DirectX stuff, I just want to play WAV, MP3, and MIDI quickly and properly ...

 

So either I use DirectSound but figure out how to play MIDI files (and MP3 if possible) Or I use AudioVideoPlayback and find a way to fix the initial delay/lag... (if possible)...

 

(Is it just me or does "AudioVideoPlayback" seem much slower then "DirectSound"?)

 

So what do you guys, the Gamer / DirectX guru's think on this subject?

Thanks,

  • *Experts*
Posted
DirectSound is only meant for WAVE files/sounds and that is what it will play. It provides you with a great toolset for manipulation of sounds. Are you sure you can't use WAV files in your application? You would be able to achieve much greater effects and efficiency even if your application is very simple. AudioVideoPlayback is not supported anymore either (and it is also very basic), so it is very much a waste of developement time when looking from a future perspective.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...