wineoss.drv: Use AFMT_S24_LE instead of AFMT_S24_PACKED.

This commit is contained in:
Gerald Pfeifer 2011-05-08 02:04:06 +02:00 committed by Alexandre Julliard
parent 1bb985fb27
commit 051b64b66f
1 changed files with 2 additions and 2 deletions

View File

@ -525,7 +525,7 @@ static int get_oss_format(const WAVEFORMATEX *fmt)
case 16: case 16:
return AFMT_S16_LE; return AFMT_S16_LE;
case 24: case 24:
return AFMT_S24_PACKED; return AFMT_S24_LE;
case 32: case 32:
return AFMT_S32_LE; return AFMT_S32_LE;
} }
@ -1026,7 +1026,7 @@ static HRESULT WINAPI AudioClient_GetMixFormat(IAudioClient *iface,
}else if(formats & AFMT_S32_LE){ }else if(formats & AFMT_S32_LE){
fmt->Format.wBitsPerSample = 32; fmt->Format.wBitsPerSample = 32;
fmt->SubFormat = KSDATAFORMAT_SUBTYPE_PCM; fmt->SubFormat = KSDATAFORMAT_SUBTYPE_PCM;
}else if(formats & AFMT_S24_PACKED){ }else if(formats & AFMT_S24_LE){
fmt->Format.wBitsPerSample = 24; fmt->Format.wBitsPerSample = 24;
fmt->SubFormat = KSDATAFORMAT_SUBTYPE_PCM; fmt->SubFormat = KSDATAFORMAT_SUBTYPE_PCM;
}else{ }else{