How do you just play a wav file with XACT?
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?
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.
You can play a wav file directly using the windows API quite simply,
PlaySound(filename, NULL, SND_FILENAME | SND_NODEFAULT | SND_ASYNC )
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement