How do you just play a wav file with XACT?

Started by
3 comments, last by CodaKiller 14 years, 5 months ago
Every tutorial I read says you have to create a wave bank and a sound bank but this won't work for what I need, is there any way I can just get it to load a wav file in to memory and then play it?
Remember Codeka is my alternate account, just remember that!
Advertisement
If you're using XNA, you can use the SoundEffect class. Some more information on what you're using / trying to do and why XACT is wrong for it might be helpful.
Quote:Original post by f8k8
If you're using XNA, you can use the SoundEffect class. Some more information on what you're using / trying to do and why XACT is wrong for it might be helpful.


Not using XNA and the only reason XACT seems like it won't work is because I need to use wave files not precompiled libraries.
Remember Codeka is my alternate account, just remember that!
You can play a wav file directly using the windows API quite simply,

PlaySound(filename, NULL, SND_FILENAME | SND_NODEFAULT | SND_ASYNC )
Quote:Original post by direwulf
You can play a wav file directly using the windows API quite simply,

*** Source Snippet Removed ***


Hmmm didn't know about that, is there a way to modify how it is played?
Remember Codeka is my alternate account, just remember that!

This topic is closed to new replies.

Advertisement