Home
last modified time | relevance | path

Searched refs:nChannels (Results 1 – 25 of 84) sorted by relevance

1234

/reactos/dll/win32/msadp32.acm/
H A Dmsadp32.c67 int nChannels; member
122 if (wfx->nChannels == fmts[i].nChannels && in ADPCM_GetFormatIndex()
131 if(3 > wfx->nChannels && in ADPCM_GetFormatIndex()
132 wfx->nChannels > 0 && in ADPCM_GetFormatIndex()
139 if(3 > wfx->nChannels && in ADPCM_GetFormatIndex()
140 wfx->nChannels > 0 && in ADPCM_GetFormatIndex()
471 afd->pwfx->nChannels = PCM_Formats[afd->dwFormatIndex].nChannels; in ADPCM_FormatDetails()
486 afd->pwfx->nChannels = ADPCM_Formats[afd->dwFormatIndex].nChannels; in ADPCM_FormatDetails()
521 adfs->pwfxDst->nChannels = adfs->pwfxSrc->nChannels; in ADPCM_FormatSuggest()
600 adsi->pwfxSrc->nChannels != adsi->pwfxDst->nChannels) in ADPCM_StreamOpen()
[all …]
/reactos/dll/win32/msg711.acm/
H A Dmsg711.c65 int nChannels; member
118 if (wfx->nChannels == fmts[i].nChannels && in G711_GetFormatIndex()
750 afd->pwfx->nChannels = PCM_Formats[afd->dwFormatIndex].nChannels; in G711_FormatDetails()
758 afd->pwfx->nChannels = ALaw_Formats[afd->dwFormatIndex].nChannels; in G711_FormatDetails()
803 adfs->pwfxDst->nChannels = adfs->pwfxSrc->nChannels; in G711_FormatSuggest()
885 adsi->pwfxSrc->nChannels != adsi->pwfxDst->nChannels || in G711_StreamOpen()
897 adsi->pwfxSrc->nChannels != adsi->pwfxDst->nChannels || in G711_StreamOpen()
912 adsi->pwfxSrc->nChannels != adsi->pwfxDst->nChannels || in G711_StreamOpen()
924 adsi->pwfxSrc->nChannels != adsi->pwfxDst->nChannels || in G711_StreamOpen()
936 adsi->pwfxSrc->nChannels != adsi->pwfxDst->nChannels) in G711_StreamOpen()
[all …]
/reactos/dll/win32/imaadp32.acm/
H A Dimaadp32.c63 int nChannels; member
106 if (wfx->nChannels == fmts[i].nChannels && in ADPCM_GetFormatIndex()
115 if(3 > wfx->nChannels && in ADPCM_GetFormatIndex()
116 wfx->nChannels > 0 && in ADPCM_GetFormatIndex()
123 if(3 > wfx->nChannels && in ADPCM_GetFormatIndex()
124 wfx->nChannels > 0 && in ADPCM_GetFormatIndex()
615 afd->pwfx->nChannels = PCM_Formats[afd->dwFormatIndex].nChannels; in ADPCM_FormatDetails()
628 afd->pwfx->nChannels = ADPCM_Formats[afd->dwFormatIndex].nChannels; in ADPCM_FormatDetails()
662 adfs->pwfxDst->nChannels = adfs->pwfxSrc->nChannels; in ADPCM_FormatSuggest()
748 adsi->pwfxSrc->nChannels != adsi->pwfxDst->nChannels || in ADPCM_StreamOpen()
[all …]
/reactos/dll/directx/dsound_new/
H A Dmisc.c102 DataFormat.WaveFormatEx.nChannels = WaveFormatEx->nChannels; in SetPinFormat()
126 DWORD nChannels, nBitsPerSample; in DoDataIntersection() local
165 for(nChannels = 1; nChannels <= 2; nChannels++) in DoDataIntersection()
169 DataFormat->WaveFormatEx.nChannels = nChannels; in DoDataIntersection()
174 nChannels, nBitsPerSample, SampleFrequency); in DoDataIntersection()
188 WaveFormatOut->nAvgBytesPerSec = (nBitsPerSample / 8) * nChannels * SampleFrequency; in DoDataIntersection()
191 WaveFormatOut->nChannels = nChannels; in DoDataIntersection()
253 DataFormat->WaveFormatEx.nChannels = WaveFormatEx->nChannels; in OpenPin()
528 DWORD dwIndex, nChannels; in CreateCompatiblePin() local
564 for(nChannels = 1; nChannels <= AudioRange->MaximumChannels; nChannels++) in CreateCompatiblePin()
[all …]
H A Dcapturebuffer.c93 if (This->MixFormat.nChannels != This->Format->nChannels) in MixerThreadRoutine()
109 …uffer[MixPosition], MixLength, &BytesRead, This->MixFormat.nChannels, This->Format->nChannels, Thi… in MixerThreadRoutine()
788 MixBufferSize /= lpcDSBufferDesc->lpwfxFormat->nChannels; in NewDirectSoundCaptureBuffer()
791 MixBufferSize *= This->MixFormat.nChannels; in NewDirectSoundCaptureBuffer()
/reactos/modules/rostests/winetests/winmm/
H A Dcapture.c139 WORD nChannels = pwfx->nChannels; in wave_in_test_deviceIn() local
177 ok(pwfx->nChannels==nChannels && in wave_in_test_deviceIn()
182 pwfx->nChannels, nSamplesPerSec, wBitsPerSample, nChannels); in wave_in_test_deviceIn()
448 format.nChannels=1; in wave_in_test_device()
467 format.nChannels=2; in wave_in_test_device()
487 wfex.Format.nChannels=2; in wave_in_test_device()
512 wfex.Format.nChannels=4; in wave_in_test_device()
537 wfex.Format.nChannels=6; in wave_in_test_device()
565 wfex.Format.nChannels=2; in wave_in_test_device()
591 wfex.Format.nChannels=2; in wave_in_test_device()
[all …]
H A Dwave.c57 wfx.nChannels = 1; in test_multiple_waveopens()
614 WORD nChannels = pwfx->nChannels; in wave_out_test_deviceOut() local
693 ok(pwfx->nChannels==nChannels && in wave_out_test_deviceOut()
698 pwfx->nChannels, nSamplesPerSec, wBitsPerSample, nChannels); in wave_out_test_deviceOut()
1005 format.nChannels=1; in wave_out_test_device()
1177 format.nChannels=1; in wave_out_test_device()
1213 wfa.wfx.nChannels=1; in wave_out_test_device()
1428 format.nChannels = 1; in wave_out_test_device()
1514 format.nChannels=2; in wave_out_tests()
1579 fmt.nChannels = 2; in test_fragmentsize()
[all …]
/reactos/modules/rostests/winetests/dsound/
H A Ddsound.c600 wfx.nChannels!=wfx2.nChannels)) { in test_primary_secondary()
1261 wfx.nChannels = 0; in test_invalid_fmts()
1269 wfx.nChannels = 2; in test_invalid_fmts()
1277 wfx.nChannels = 2; in test_invalid_fmts()
1285 wfx.nChannels = 2; in test_invalid_fmts()
1293 wfx.nChannels = 2; in test_invalid_fmts()
1344 ok(wfx.nChannels == 2, "channels: %u\n", wfx.nChannels); in test_invalid_fmts()
1361 ok(wfx.nChannels == 2, "channels: %u\n", wfx.nChannels); in test_invalid_fmts()
1378 ok(wfx.nChannels == 2, "channels: %u\n", wfx.nChannels); in test_invalid_fmts()
1396 ok(wfx.nChannels == 2, "channels: %u\n", wfx.nChannels); in test_invalid_fmts()
[all …]
H A Dds3d.c50 if (wfx->nChannels==2) in wave_generate_la()
57 if (wfx->nChannels==2) { in wave_generate_la()
68 if (wfx->nChannels==2) { in wave_generate_la()
82 if (wfx->nChannels==2) { in wave_generate_la()
93 if (wfx->nChannels==2) { in wave_generate_la()
158 wfx->nChannels=channels; in init_format()
161 wfx->nBlockAlign=wfx->nChannels*wfx->wBitsPerSample/8; in init_format()
384 wfx.nChannels,wfx.nAvgBytesPerSec,wfx.nBlockAlign); in test_buffer()
441 wfx.nChannels!=wfx2.nChannels)) { in test_buffer()
447 wfx.nChannels,wfx.nAvgBytesPerSec,wfx.nBlockAlign); in test_buffer()
[all …]
/reactos/drivers/wdm/audio/drivers/ac97/
H A Dminiport.cpp409 int nChannels; in BuildDataRangeInformation() local
421 nChannels = 6; in BuildDataRangeInformation()
425 nChannels = 4; in BuildDataRangeInformation()
430 nChannels = 2; in BuildDataRangeInformation()
678 WaveFormat->Format.nChannels = (WORD)nMaxChannels; in STDMETHODIMP_()
732 if (WaveFormat->Format.nChannels == m_wChannels) in STDMETHODIMP_()
743 if (WaveFormat->Format.nChannels == 4) in STDMETHODIMP_()
910 if (((waveFormat->Format.nChannels == 1) && in TestDataFormat()
912 ((waveFormat->Format.nChannels == 2) && in TestDataFormat()
928 if (waveFormat->Format.nChannels != 1) in TestDataFormat()
[all …]
/reactos/dll/directx/wine/dsound/
H A Dmixer.c181 (dsb->pwfx->nChannels == dsb->device->pwfx->nChannels) && !needresample && !ieee) in DSOUND_RecalcFormat()
277 if (device->pwfx->nChannels == dsb->pwfx->nChannels || in cp_fields()
278 (device->pwfx->nChannels == 2 && dsb->pwfx->nChannels == 6) || in cp_fields()
279 (device->pwfx->nChannels == 8 && dsb->pwfx->nChannels == 2) || in cp_fields()
280 (device->pwfx->nChannels == 6 && dsb->pwfx->nChannels == 2)) { in cp_fields()
282 if (device->pwfx->nChannels == 2 || dsb->pwfx->nChannels == 2) in cp_fields()
287 if (device->pwfx->nChannels == 1 && dsb->pwfx->nChannels == 2) in cp_fields()
293 if (device->pwfx->nChannels == 2 && dsb->pwfx->nChannels == 1) in cp_fields()
415 INT nChannels = dsb->device->pwfx->nChannels; in DSOUND_MixerVol() local
430 if (nChannels != 1 && nChannels != 2) in DSOUND_MixerVol()
[all …]
/reactos/modules/rostests/winetests/mmdevapi/
H A Dcapture.c496 trace("chan: %u\n", pwfx->nChannels); in test_audioclient()
663 hr = IAudioStreamVolume_GetAllVolumes(asv, fmt->nChannels, NULL); in test_streamvolume()
672 hr = IAudioStreamVolume_GetAllVolumes(asv, fmt->nChannels, vols); in test_streamvolume()
675 for(i = 1; i < fmt->nChannels; ++i) in test_streamvolume()
681 hr = IAudioStreamVolume_SetAllVolumes(asv, fmt->nChannels, NULL); in test_streamvolume()
687 hr = IAudioStreamVolume_SetAllVolumes(asv, fmt->nChannels, vols); in test_streamvolume()
762 hr = IChannelAudioVolume_GetAllVolumes(acv, fmt->nChannels, NULL); in test_channelvolume()
771 hr = IChannelAudioVolume_GetAllVolumes(acv, fmt->nChannels, vols); in test_channelvolume()
774 for(i = 1; i < fmt->nChannels; ++i) in test_channelvolume()
966 … ok(nch == fmt->nChannels, "Got wrong channel count, expected %u: %u\n", fmt->nChannels, nch); in test_volume_dependence()
[all …]
H A Drender.c84 for(delta = phase, cn = 0; cn < wfxe->Format.nChannels; in wave_generate_tone()
85 delta += .5/wfxe->Format.nChannels, cn++){ in wave_generate_tone()
204 trace("chan: %u\n", pwfx->nChannels); in test_audioclient()
401 fmt.nChannels = win_formats[i][2]; in test_formats()
424 && fmt.nChannels == pwfx->nChannels) in test_formats()
432 pwfx2->nChannels == pwfx->nChannels && in test_formats()
900 pwfx->nChannels = 2; in test_clock()
1600 for(i = 1; i < fmt->nChannels; ++i) in test_streamvolume()
1704 for(i = 1; i < fmt->nChannels; ++i) in test_channelvolume()
1913 … ok(nch == fmt->nChannels, "Got wrong channel count, expected %u: %u\n", fmt->nChannels, nch); in test_volume_dependence()
[all …]
/reactos/dll/win32/msacm32.drv/
H A Dwavemap.c219 wfx.nChannels = lpDesc->lpFormat->nChannels; in wodOpen()
229 wfx.nChannels = lpDesc->lpFormat->nChannels; in wodOpen()
232 wfx.nChannels ^= 3; in wodOpen()
239 wfx.nChannels = lpDesc->lpFormat->nChannels; in wodOpen()
255 wfx.nChannels = lpDesc->lpFormat->nChannels; in wodOpen()
802 wfx.nChannels = lpDesc->lpFormat->nChannels; in widOpen()
805 wfx.nChannels ^= 3; in widOpen()
813 wfx.nChannels = lpDesc->lpFormat->nChannels; in widOpen()
821 wfx.nChannels ^= 3; in widOpen()
829 wfx.nChannels = lpDesc->lpFormat->nChannels; in widOpen()
[all …]
/reactos/dll/win32/winemp3.acm/
H A Dmpegl3.c61 int nChannels; member
117 if (wfx->nChannels == fmts[i].nChannels && in MPEG3_GetFormatIndex()
255 adsi->pwfxSrc->nChannels != adsi->pwfxDst->nChannels || in MPEG3_StreamOpen()
622 aad->in.mChannelsPerFrame = adsi->pwfxSrc->nChannels; in MPEG3_StreamOpen()
623 aad->out.mChannelsPerFrame = adsi->pwfxDst->nChannels; in MPEG3_StreamOpen()
782 afd->pwfx->nChannels = PCM_Formats[afd->dwFormatIndex].nChannels; in MPEG3_FormatDetails()
789 (afd->pwfx->nChannels * afd->pwfx->wBitsPerSample) / 8; in MPEG3_FormatDetails()
826 adfs->pwfxDst->nChannels = adfs->pwfxSrc->nChannels; in MPEG3_FormatSuggest()
849 adfs->pwfxDst->nBlockAlign = (adfs->pwfxDst->nChannels * adfs->pwfxDst->wBitsPerSample) / 8; in MPEG3_FormatSuggest()
/reactos/modules/rostests/winetests/msacm32/
H A Dmsacm.c277 ok(dst->nChannels == pafd->pwfx->nChannels, in FormatEnumProc()
278 "expected %d, got %d\n", pafd->pwfx->nChannels, dst->nChannels); in FormatEnumProc()
284 ok(dst->nBlockAlign == 2*pafd->pwfx->nChannels, in FormatEnumProc()
858 src->wfx.nChannels = 1; in test_prepareheader()
882 dst.nChannels = 1; in test_prepareheader()
1154 src.nChannels = 1; in test_acmFormatSuggest()
1165 ok(src.nChannels == dst.nChannels, "expected %d, got %d\n", src.nChannels, dst.nChannels); in test_acmFormatSuggest()
1180 ok(src.nChannels == dst.nChannels, "expected %d, got %d\n", src.nChannels, dst.nChannels); in test_acmFormatSuggest()
1209 src.nChannels = 1; in test_acmFormatSuggest()
1290 src.wfx.nChannels = 1; in test_mp3()
[all …]
/reactos/modules/rosapps/applications/net/tsclient/rdesktop/
H A Drdpsnd_libao.c101 if ((pwfx->nChannels != 1) && (pwfx->nChannels != 2)) in wave_out_format_supported()
119 format.channels = pwfx->nChannels; in wave_out_set_format()
120 This->channels = pwfx->nChannels; in wave_out_set_format()
H A Drdpsnd_sun.c101 if ((pwfx->nChannels != 1) && (pwfx->nChannels != 2)) in wave_out_format_supported()
136 if (pwfx->nChannels == 1) in wave_out_set_format()
140 else if (pwfx->nChannels == 2) in wave_out_set_format()
H A Drdpsnd_oss.c86 if ((pwfx->nChannels != 1) && (pwfx->nChannels != 2)) in wave_out_format_supported()
116 if (pwfx->nChannels == 2) in wave_out_set_format()
H A Drdpsnd_sgi.c129 if ((pwfx->nChannels != 1) && (pwfx->nChannels != 2)) in wave_out_format_supported()
168 channels = pwfx->nChannels; in wave_out_set_format()
/reactos/dll/win32/msacm32/
H A Dpcmconverter.c95 int nChannels; member
116 if (wfx->nChannels == PCM_Formats[i].nChannels && in PCM_GetFormatIndex()
1059 afd->pwfx->nChannels = PCM_Formats[afd->dwFormatIndex].nChannels; in PCM_FormatDetails()
1066 (afd->pwfx->nChannels * afd->pwfx->wBitsPerSample) / 8; in PCM_FormatDetails()
1101 adfs->pwfxDst->nChannels = adfs->pwfxSrc->nChannels; in PCM_FormatSuggest()
1128 adfs->pwfxDst->nBlockAlign = (adfs->pwfxDst->nChannels * adfs->pwfxDst->wBitsPerSample) / 8; in PCM_FormatSuggest()
1156 if (adsi->pwfxSrc->nBlockAlign != 3 * adsi->pwfxSrc->nChannels) { in PCM_StreamOpen()
1174 if (adsi->pwfxDst->nBlockAlign != 3 * adsi->pwfxDst->nChannels) { in PCM_StreamOpen()
1185 if (adsi->pwfxSrc->nChannels == 1) idx += 2; in PCM_StreamOpen()
1187 if (adsi->pwfxDst->nChannels == 1) idx += 1; in PCM_StreamOpen()
[all …]
/reactos/drivers/wdm/audio/filters/kmixer/
H A Dpin.c451 … Formats[Property->PinId].WaveFormatEx.nChannels = WaveFormat->WaveFormatEx.nChannels; in Pin_fnDeviceIoControl()
620 InputFormat->WaveFormatEx.nChannels, OutputFormat->WaveFormatEx.nChannels, in Pin_fnFastWrite()
640 if (InputFormat->WaveFormatEx.nChannels != OutputFormat->WaveFormatEx.nChannels) in Pin_fnFastWrite()
644 InputFormat->WaveFormatEx.nChannels, in Pin_fnFastWrite()
645 OutputFormat->WaveFormatEx.nChannels, in Pin_fnFastWrite()
665 OutputFormat->WaveFormatEx.nChannels, in Pin_fnFastWrite()
/reactos/drivers/wdm/audio/sysaudio/
H A Dcontrol.c225 MixerFormat->WaveFormatEx.nChannels = 2; in ComputeCompatibleFormat()
230 …MixerFormat->WaveFormatEx.nChannels = min(ClientFormat->WaveFormatEx.nChannels, AudioRange->Maximu… in ComputeCompatibleFormat()
241 …MixerFormat->WaveFormatEx.nBlockAlign = (MixerFormat->WaveFormatEx.nChannels * MixerFormat->WaveFo… in ComputeCompatibleFormat()
242 …MixerFormat->WaveFormatEx.nAvgBytesPerSec = MixerFormat->WaveFormatEx.nChannels * MixerFormat->Wav… in ComputeCompatibleFormat()
252 …dioRange->MaximumChannels, MixerFormat->WaveFormatEx.nChannels, ClientFormat->WaveFormatEx.nChanne… in ComputeCompatibleFormat()
/reactos/sdk/lib/drivers/sound/mmixer/
H A Dwave.c121 DataFormat->WaveFormatEx.nChannels = WaveFormatEx->nChannels; in MMixerInitializeDataFormat()
141 if (WaveFormatEx->nChannels == 0) in MMixerInitializeDataFormat()
143 else if (WaveFormatEx->nChannels == 1) in MMixerInitializeDataFormat()
145 else if (WaveFormatEx->nChannels == 2) in MMixerInitializeDataFormat()
147 else if (WaveFormatEx->nChannels == 4) in MMixerInitializeDataFormat()
149 else if (WaveFormatEx->nChannels == 5) in MMixerInitializeDataFormat()
151 else if (WaveFormatEx->nChannels == 7) in MMixerInitializeDataFormat()
/reactos/dll/win32/msgsm32.acm/
H A Dmsgsm32.c142 if (wfx->nChannels != 1) in GSM_FormatValidate()
273 afd->pwfx->nChannels = 1; in GSM_FormatDetails()
281 afd->pwfx->nChannels = 1; in GSM_FormatDetails()
318 adfs->pwfxDst->nChannels = adfs->pwfxSrc->nChannels; in GSM_FormatSuggest()

1234