Changed three similar error messages to contain more context.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Sun, 26 May 2013 11:54:17 +0200
changeset 721808c403ba173e
parent 7217 ae087380127d
child 7219 c577dfb69153
Changed three similar error messages to contain more context.
src/audio/xaudio2/SDL_xaudio2.c
     1.1 --- a/src/audio/xaudio2/SDL_xaudio2.c	Fri May 24 03:29:31 2013 -0700
     1.2 +++ b/src/audio/xaudio2/SDL_xaudio2.c	Sun May 26 11:54:17 2013 +0200
     1.3 @@ -75,7 +75,7 @@
     1.4          SDL_SetError("XAudio2: capture devices unsupported.");
     1.5          return;
     1.6      } else if (XAudio2Create(&ixa2, 0, XAUDIO2_DEFAULT_PROCESSOR) != S_OK) {
     1.7 -        SDL_SetError("XAudio2: XAudio2Create() failed.");
     1.8 +        SDL_SetError("XAudio2: XAudio2Create() failed at detection.");
     1.9          return;
    1.10      } else if (IXAudio2_GetDeviceCount(ixa2, &devcount) != S_OK) {
    1.11          SDL_SetError("XAudio2: IXAudio2::GetDeviceCount() failed.");
    1.12 @@ -247,7 +247,7 @@
    1.13      if (iscapture) {
    1.14          return SDL_SetError("XAudio2: capture devices unsupported.");
    1.15      } else if (XAudio2Create(&ixa2, 0, XAUDIO2_DEFAULT_PROCESSOR) != S_OK) {
    1.16 -        return SDL_SetError("XAudio2: XAudio2Create() failed.");
    1.17 +        return SDL_SetError("XAudio2: XAudio2Create() failed at open.");
    1.18      }
    1.19  
    1.20      if (devname != NULL) {
    1.21 @@ -405,7 +405,7 @@
    1.22  
    1.23      if (XAudio2Create(&ixa2, 0, XAUDIO2_DEFAULT_PROCESSOR) != S_OK) {
    1.24          WIN_CoUninitialize();
    1.25 -        SDL_SetError("XAudio2: XAudio2Create() failed");
    1.26 +        SDL_SetError("XAudio2: XAudio2Create() failed at initialization");
    1.27          return 0;  /* not available. */
    1.28      }
    1.29      IXAudio2_Release(ixa2);