Commit 72594e255af1755990e7fc08997a825a6c21c236

Ozkan Sezer 2020-10-14T23:01:04

SDL_os2audio.c (OS2_OpenDevice): remove assignment to wrong spec member Correct assignment to 'format' member is done below, already.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/src/audio/os2/SDL_os2audio.c b/src/audio/os2/SDL_os2audio.c
index bf40fb8..69b317e 100644
--- a/src/audio/os2/SDL_os2audio.c
+++ b/src/audio/os2/SDL_os2audio.c
@@ -280,7 +280,6 @@ static int OS2_OpenDevice(_THIS, void *handle, const char *devname,
   {
     debug( "Unsupported audio format, AUDIO_S16 used" );
     SDLAudioFmt = AUDIO_S16;
-    this->spec.freq = AUDIO_S16;
   }
 
   pAData = SDL_calloc( 1, sizeof(SDL_PrivateAudioData) );
@@ -374,7 +373,7 @@ static int OS2_OpenDevice(_THIS, void *handle, const char *devname,
     ulRC = mciSendCommand( pAData->usDeviceId, MCI_MIXSETUP,
                      MCI_WAIT | MCI_MIXSETUP_INIT, &pAData->stMCIMixSetup, 0 );
   }
-  
+
   debug( "Setup mixer [BPS: %u, Freq.: %u, Channels: %u]: %s",
          pAData->stMCIMixSetup.ulBitsPerSample,
          pAData->stMCIMixSetup.ulSamplesPerSec,