Changed three similar error messages to contain more context.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Sun, 26 May 2013 11:54:17 +0200
changeset 7218 08c403ba173e
parent 7217 ae087380127d
child 7219 c577dfb69153
Changed three similar error messages to contain more context.
src/audio/xaudio2/SDL_xaudio2.c
--- a/src/audio/xaudio2/SDL_xaudio2.c	Fri May 24 03:29:31 2013 -0700
+++ b/src/audio/xaudio2/SDL_xaudio2.c	Sun May 26 11:54:17 2013 +0200
@@ -75,7 +75,7 @@
         SDL_SetError("XAudio2: capture devices unsupported.");
         return;
     } else if (XAudio2Create(&ixa2, 0, XAUDIO2_DEFAULT_PROCESSOR) != S_OK) {
-        SDL_SetError("XAudio2: XAudio2Create() failed.");
+        SDL_SetError("XAudio2: XAudio2Create() failed at detection.");
         return;
     } else if (IXAudio2_GetDeviceCount(ixa2, &devcount) != S_OK) {
         SDL_SetError("XAudio2: IXAudio2::GetDeviceCount() failed.");
@@ -247,7 +247,7 @@
     if (iscapture) {
         return SDL_SetError("XAudio2: capture devices unsupported.");
     } else if (XAudio2Create(&ixa2, 0, XAUDIO2_DEFAULT_PROCESSOR) != S_OK) {
-        return SDL_SetError("XAudio2: XAudio2Create() failed.");
+        return SDL_SetError("XAudio2: XAudio2Create() failed at open.");
     }
 
     if (devname != NULL) {
@@ -405,7 +405,7 @@
 
     if (XAudio2Create(&ixa2, 0, XAUDIO2_DEFAULT_PROCESSOR) != S_OK) {
         WIN_CoUninitialize();
-        SDL_SetError("XAudio2: XAudio2Create() failed");
+        SDL_SetError("XAudio2: XAudio2Create() failed at initialization");
         return 0;  /* not available. */
     }
     IXAudio2_Release(ixa2);