Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
WinRT: fixed XAudio2 crash bug + enabled XAudio2 backend
  • Loading branch information
DavidLudwig committed Dec 30, 2012
1 parent fea24be commit 934a085
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/SDL_config_windowsrt.h
Expand Up @@ -135,7 +135,7 @@ typedef unsigned int uintptr_t;
#define HAVE_SQRT 1

/* Enable various audio drivers */
//#define SDL_AUDIO_DRIVER_XAUDIO2 1 /* Disabled pending work to fix quality + stability issues */
#define SDL_AUDIO_DRIVER_XAUDIO2 1
#define SDL_AUDIO_DRIVER_DISK 1
#define SDL_AUDIO_DRIVER_DUMMY 1

Expand Down
2 changes: 1 addition & 1 deletion src/audio/xaudio2/SDL_xaudio2.c
Expand Up @@ -192,7 +192,7 @@ class SDL_XAudio2VoiceCallback : public IXAudio2VoiceCallback
VoiceCBOnBufferEnd(pBufferContext);
}
STDMETHOD_(void, OnBufferStart)(void *pBufferContext) {
VoiceCBOnBufferEnd(pBufferContext);
VoiceCBOnBufferStart(pBufferContext);
}
STDMETHOD_(void, OnLoopEnd)(void *pBufferContext) {
VoiceCBOnLoopEnd(pBufferContext);
Expand Down

0 comments on commit 934a085

Please sign in to comment.