XAudio2 is a low-level high performance audio API for Windows. It superseded DirectSound in 2008. It provides a signal processing and mixing foundation for games that is similar to its predecessors, DirectSound and XAudio.
Questions tagged [xaudio2]
126 questions
0
votes
0 answers
How is WaitForSingleObjectEx supposed to be implemented when using source voice callbacks with XAudio2 for Windows Runtime Components?
I am receiving a system error code x05 error_access_denied when I try to use the WaitForSingleObjectEx function to signal that an Xaudio2 source voice has finished processing all of the data in its buffer.
I want to use this as an event handler to…

program_audio
- 11
- 2
0
votes
1 answer
Loading WAV file with XAudio2
I'm writing a program which I can load and play a WAV file, I'm using XAudio2 library, I started writing it with help from msdn.microsoft.com, and now I have almost exactly copied code from msdn and it still does not work. I don't know where is the…

user3500862
- 11
- 1
- 5
0
votes
2 answers
XAudio2 create() failed
When I try to use XAudio2 it already fails at the XAudio2Create(...) function. (INITIALIZE returns at this line: if (FAILED(hr)) return false; I don't know why and google only tells me to install the directx redistributable, which I did but nothing…

theCNG27
- 405
- 8
- 27
0
votes
1 answer
Libav and xaudio2 - audio not playing
I am trying to get audio playing with libav using xaudio2. The xaudio2 code I am using works with an older ffmpeg using avcodec_decode_audio2, but that has been deprecated for avcodec_decode_audio4. I have tried following various libav examples, but…

siz
- 117
- 3
- 9
0
votes
1 answer
Getting raw pcm audio buffer from XAudio2 when playing compressed file
Is this possible to access the raw audio PCM data that is being played when using XAudio2 to play file?
I've been searching for several ways to access a decoded version of audio files being played in SL4/Windows Phone, without success.

Léon Pelletier
- 2,701
- 2
- 40
- 67
0
votes
0 answers
Crash when playing wav file over around 400k using XAudio2
I'm trying to set up basic sound in my SlimDX application, and am experimenting with playing music.
I have noted that my current configuration causes the app to crash when the file size exceeds something around 400k. I have tried a number of…

CdrTomalak
- 479
- 1
- 4
- 15
0
votes
1 answer
How to merge to sound files in WP8?
It it possible to merge sound captured from microphone with an mp3 file selected and save as a new mp3 file in windows phone 8?
Does naudio have wp8 support??

d3vil
- 11
- 1
- 5
0
votes
1 answer
SharpDX / XAudio2 : Sending a SourceVoice through a SubmixVoice
I can't figure this out, how do I route a SourceVoice through a Submixvoice? The C++ examples on the net suggest I can use effect chains, but there's no EffectChain constructor or functions that accept voices. Here're the basics:
private XAudio2 xa…
user417774
0
votes
2 answers
LNK2019 XAudio2Create - unresolved symbol
I am trying to get in touch with the DirectX SDK. I managed to install it, created a new Win32 Console Project and added following lines
#include
#include
int main(int argc, char *argv[]){
IXAudio2* pXAudio =…

bash.d
- 13,029
- 3
- 29
- 42
0
votes
1 answer
XAudio2 occlusion processing
I'm working on a home brew game engine and I am currently working on the audio engine implementation. This is mostly for self-educational reasons. I want to create an interface wrapper for generic audio processing, so I can switch between OpenAL,…

Erik Frantz
- 437
- 4
- 13
0
votes
1 answer
XAudio2 and *.wav loading, HRESULT 0x88960001
I am trying to load a *.wav file that is a microsoft wav/8bit pcm file. I am using the following code to load the data:
class WavFile : public AudioSource, public LoadableObject
{
public:
WavFile( void )
: AudioSource()
,…

OzBarry
- 1,098
- 1
- 17
- 44
0
votes
1 answer
XAudio2 and variable bitrate audio
How do I go about correctly playing audio files which may have a variable bitrate (and even a variable number of channels in some cases), such as ogg/vorbis?
XAudio expects this information in a WAVEFORMATEX structure on creation of the source…

Fire Lancer
- 29,364
- 31
- 116
- 182
0
votes
1 answer
Getting a SharpDX XAudio2 custom XAPO working in Windows 8 app
I'm using SharpDX and XAudio2 in a Windows Store app. I'm trying to create a custom XAPO and I can't even get started.
OnNavigatedTo method for the app:
protected override void OnNavigatedTo(NavigationEventArgs e)
{
XAudio2 engine = new…

George Powell
- 9,141
- 8
- 35
- 43
0
votes
1 answer
Implementing DirectX SDK sample(XAudio2Sound3D) gives me an unresolved external error?
When I implement the XAudio2Sound3D sample from the June 2010 SDK.I pretty much copied it all in my own framework and this one variable(sound3DInstance) shows up as an unresolved external: X3DAudioCalculate(sound3DInstance, &listener, &emitter,…

Brail Brailov
- 71
- 1
- 2
- 5
0
votes
2 answers
Specifying number of samples for a custom xaudio2 effect
I'm trying to write a custom xaudio2 effect that involves a fourier transform. However, the number of samples given to the process method each call is not a power of 2 (a precondition of the fourier transform implementation I have).
Is there a way…

Craig Gidney
- 17,763
- 5
- 68
- 136