mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-20 22:16:49 +01:00
SDL_os2audio.c (OS2_OpenDevice): remove assignment to wrong spec member
Correct assignment to 'format' member is done below, already.
This commit is contained in:
parent
fe2cc8d86c
commit
72594e255a
@ -280,7 +280,6 @@ static int OS2_OpenDevice(_THIS, void *handle, const char *devname,
|
|||||||
{
|
{
|
||||||
debug( "Unsupported audio format, AUDIO_S16 used" );
|
debug( "Unsupported audio format, AUDIO_S16 used" );
|
||||||
SDLAudioFmt = AUDIO_S16;
|
SDLAudioFmt = AUDIO_S16;
|
||||||
this->spec.freq = AUDIO_S16;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pAData = SDL_calloc( 1, sizeof(SDL_PrivateAudioData) );
|
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,
|
ulRC = mciSendCommand( pAData->usDeviceId, MCI_MIXSETUP,
|
||||||
MCI_WAIT | MCI_MIXSETUP_INIT, &pAData->stMCIMixSetup, 0 );
|
MCI_WAIT | MCI_MIXSETUP_INIT, &pAData->stMCIMixSetup, 0 );
|
||||||
}
|
}
|
||||||
|
|
||||||
debug( "Setup mixer [BPS: %u, Freq.: %u, Channels: %u]: %s",
|
debug( "Setup mixer [BPS: %u, Freq.: %u, Channels: %u]: %s",
|
||||||
pAData->stMCIMixSetup.ulBitsPerSample,
|
pAData->stMCIMixSetup.ulBitsPerSample,
|
||||||
pAData->stMCIMixSetup.ulSamplesPerSec,
|
pAData->stMCIMixSetup.ulSamplesPerSec,
|
||||||
|
Loading…
Reference in New Issue
Block a user