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
Patched to compile again (thanks, Rasmus!).
  • Loading branch information
icculus committed Oct 18, 2006
1 parent bf035a4 commit ded2621
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/audio/windib/SDL_dibaudio.c
Expand Up @@ -205,7 +205,7 @@ WINWAVEOUT_OpenDevice(_THIS, const char *devname, int iscapture)

while ((!valid_datatype) && (test_format)) {
valid_datatype = 1;
_this->spec.format = test_format;
this->spec.format = test_format;
switch (test_format) {
case AUDIO_U8:
case AUDIO_S16:
Expand Down Expand Up @@ -287,7 +287,7 @@ WINWAVEOUT_OpenDevice(_THIS, const char *devname, int iscapture)

/* Create the sound buffers */
this->hidden->mixbuf = (Uint8 *) SDL_malloc(NUM_BUFFERS * this->spec.size);
if (mixbuf == NULL) {
if (this->hidden->mixbuf == NULL) {
WINWAVEOUT_CloseDevice(this);
SDL_OutOfMemory();
return 0;
Expand Down
2 changes: 1 addition & 1 deletion src/audio/windx5/SDL_dx5audio.c
Expand Up @@ -485,7 +485,7 @@ DSOUND_Init(SDL_AudioDriverImpl *impl)
SDL_memset(&ver, '\0', sizeof (OSVERSIONINFO));
ver.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
GetVersionEx(&ver);
if (ver.dwPlatformId == VER_PLATFORM_WIN32_NT)
if (ver.dwPlatformId == VER_PLATFORM_WIN32_NT) {
if (ver.dwMajorVersion <= 4) {
return 0; /* NT4.0 or earlier. Disable dsound support. */
}
Expand Down

0 comments on commit ded2621

Please sign in to comment.