winealsa: Disable channel remapping for capture devices.
This commit is contained in:
parent
5d17f9bc7c
commit
8fe52db332
|
@ -1162,7 +1162,7 @@ static DWORD get_channel_mask(unsigned int channels)
|
||||||
|
|
||||||
static HRESULT map_channels(ACImpl *This, const WAVEFORMATEX *fmt)
|
static HRESULT map_channels(ACImpl *This, const WAVEFORMATEX *fmt)
|
||||||
{
|
{
|
||||||
if(fmt->wFormatTag == WAVE_FORMAT_EXTENSIBLE || fmt->nChannels > 2){
|
if(This->dataflow != eCapture && (fmt->wFormatTag == WAVE_FORMAT_EXTENSIBLE || fmt->nChannels > 2) ){
|
||||||
WAVEFORMATEXTENSIBLE *fmtex = (void*)fmt;
|
WAVEFORMATEXTENSIBLE *fmtex = (void*)fmt;
|
||||||
DWORD mask, flag = SPEAKER_FRONT_LEFT;
|
DWORD mask, flag = SPEAKER_FRONT_LEFT;
|
||||||
UINT i = 0;
|
UINT i = 0;
|
||||||
|
|
Loading…
Reference in New Issue