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

Commit

Permalink
Changed three similar error messages to contain more context.
Browse files Browse the repository at this point in the history
  • Loading branch information
philippwiesemann committed May 26, 2013
1 parent 9fe5708 commit 99e21a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/audio/xaudio2/SDL_xaudio2.c
Expand Up @@ -75,7 +75,7 @@ XAUDIO2_DetectDevices(int iscapture, SDL_AddAudioDevice addfn)
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.");
Expand Down Expand Up @@ -247,7 +247,7 @@ XAUDIO2_OpenDevice(_THIS, const char *devname, int iscapture)
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) {
Expand Down Expand Up @@ -405,7 +405,7 @@ XAUDIO2_Init(SDL_AudioDriverImpl * impl)

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);
Expand Down

0 comments on commit 99e21a2

Please sign in to comment.