/reactos/modules/rostests/winetests/winmm/ |
H A D | capture.c | 140 WORD wBitsPerSample = pwfx->wBitsPerSample; in wave_in_test_deviceIn() local 178 pwfx->wBitsPerSample==wBitsPerSample && in wave_in_test_deviceIn() 449 format.wBitsPerSample=8; in wave_in_test_device() 468 format.wBitsPerSample=4; in wave_in_test_device() 488 wfex.Format.wBitsPerSample=16; in wave_in_test_device() 513 wfex.Format.wBitsPerSample=16; in wave_in_test_device() 538 wfex.Format.wBitsPerSample=16; in wave_in_test_device() 566 wfex.Format.wBitsPerSample=24; in wave_in_test_device() 592 wfex.Format.wBitsPerSample=32; in wave_in_test_device() 617 wfex.Format.wBitsPerSample=32; in wave_in_test_device() [all …]
|
H A D | wave.c | 61 wfx.wBitsPerSample = 8; in test_multiple_waveopens() 111 if (wfx->wBitsPerSample==8) { in wave_generate_la() 615 WORD wBitsPerSample = pwfx->wBitsPerSample; in wave_out_test_deviceOut() local 694 pwfx->wBitsPerSample==wBitsPerSample && in wave_out_test_deviceOut() 1006 format.wBitsPerSample=8; in wave_out_test_device() 1026 format.wBitsPerSample=8; in wave_out_test_device() 1178 format.wBitsPerSample=8; in wave_out_test_device() 1432 format.wBitsPerSample = 8; in wave_out_test_device() 1515 format.wBitsPerSample=16; in wave_out_tests() 1581 fmt.wBitsPerSample = 16; in test_fragmentsize() [all …]
|
/reactos/modules/rostests/winetests/dsound/ |
H A D | dsound.c | 599 wfx.wBitsPerSample!=wfx2.wBitsPerSample || in test_primary_secondary() 1263 wfx.wBitsPerSample = 16; in test_invalid_fmts() 1271 wfx.wBitsPerSample = 0; in test_invalid_fmts() 1279 wfx.wBitsPerSample = 2; in test_invalid_fmts() 1346 ok(wfx.wBitsPerSample == 16, "bps: %u\n", wfx.wBitsPerSample); in test_invalid_fmts() 1363 ok(wfx.wBitsPerSample == 16, "bps: %u\n", wfx.wBitsPerSample); in test_invalid_fmts() 1380 ok(wfx.wBitsPerSample == 16, "bps: %u\n", wfx.wBitsPerSample); in test_invalid_fmts() 1398 ok(wfx.wBitsPerSample == 16, "bps: %u\n", wfx.wBitsPerSample); in test_invalid_fmts() 1425 ok(fmtex.Format.wBitsPerSample == 16, "bps: %u\n", fmtex.Format.wBitsPerSample); in test_invalid_fmts() 1451 ok(fmtex.Format.wBitsPerSample == 24, "bps: %u\n", fmtex.Format.wBitsPerSample); in test_invalid_fmts() [all …]
|
H A D | ds3d.c | 47 if (wfx->wBitsPerSample==8) { in wave_generate_la() 52 } else if (wfx->wBitsPerSample == 16) { in wave_generate_la() 62 } else if (wfx->wBitsPerSample == 24) { in wave_generate_la() 74 } else if (wfx->wBitsPerSample == 32) { in wave_generate_la() 159 wfx->wBitsPerSample=depth; in init_format() 161 wfx->nBlockAlign=wfx->nChannels*wfx->wBitsPerSample/8; in init_format() 233 s=(state->wfx->wBitsPerSample==8?0x80:0); in buffer_silence() 383 wfx.wFormatTag,wfx.nSamplesPerSec,wfx.wBitsPerSample, in test_buffer() 440 wfx.wBitsPerSample!=wfx2.wBitsPerSample || in test_buffer() 446 wfx.wFormatTag,wfx.nSamplesPerSec,wfx.wBitsPerSample, in test_buffer() [all …]
|
H A D | dsound8.c | 598 wfx.wBitsPerSample!=wfx2.wBitsPerSample || in test_primary_secondary8() 602 wfx2.wFormatTag,wfx2.nSamplesPerSec,wfx2.wBitsPerSample, in test_primary_secondary8() 605 wfx.wFormatTag,wfx.nSamplesPerSec,wfx.wBitsPerSample, in test_primary_secondary8() 626 wfx.nSamplesPerSec,wfx.wBitsPerSample,wfx.nChannels,format_tags[tag], in test_primary_secondary8() 627 wfx2.nSamplesPerSec,wfx2.wBitsPerSample,wfx2.nChannels); in test_primary_secondary8() 741 if (wfx.wBitsPerSample != 8 && wfx.wBitsPerSample != 16) in test_secondary8() 760 wfxe.Samples.wValidBitsPerSample = wfx.wBitsPerSample; in test_secondary8() 855 wfxe.Samples.wValidBitsPerSample = wfxe.Format.wBitsPerSample; in test_secondary8() 867 wfx1.nSamplesPerSec,wfx1.wBitsPerSample,wfx1.nChannels); in test_secondary8() 986 fmt.wBitsPerSample = 16; in test_hw_buffers() [all …]
|
H A D | ds3d8.c | 85 s=(state->wfx->wBitsPerSample==8?0x80:0); in buffer_silence8() 224 wfx.wFormatTag,wfx.nSamplesPerSec,wfx.wBitsPerSample, in test_buffer8() 281 wfx.wBitsPerSample!=wfx2.wBitsPerSample || in test_buffer8() 284 wfx2.wFormatTag,wfx2.nSamplesPerSec,wfx2.wBitsPerSample, in test_buffer8() 287 wfx.wFormatTag,wfx.nSamplesPerSec,wfx.wBitsPerSample, in test_buffer8() 331 wfx.nSamplesPerSec, wfx.wBitsPerSample,wfx.nChannels); in test_buffer8() 661 wfx.nSamplesPerSec,wfx.wBitsPerSample,wfx.nChannels, in test_secondary8() 662 wfx1.nSamplesPerSec,wfx1.wBitsPerSample,wfx1.nChannels); in test_secondary8() 672 wfx.nSamplesPerSec,wfx.wBitsPerSample,wfx.nChannels, in test_secondary8()
|
/reactos/dll/directx/dsound_new/ |
H A D | misc.c | 104 DataFormat.WaveFormatEx.wBitsPerSample = WaveFormatEx->wBitsPerSample; in SetPinFormat() 171 DataFormat->WaveFormatEx.wBitsPerSample = nBitsPerSample; in DoDataIntersection() 189 WaveFormatOut->wBitsPerSample = nBitsPerSample; in DoDataIntersection() 197 … WaveFormatEx->nChannels, WaveFormatEx->wBitsPerSample, WaveFormatEx->nSamplesPerSec, in DoDataIntersection() 198 … WaveFormatOut->nChannels, WaveFormatOut->wBitsPerSample, WaveFormatOut->nSamplesPerSec); in DoDataIntersection() 257 DataFormat->WaveFormatEx.wBitsPerSample = WaveFormatEx->wBitsPerSample; in OpenPin() 556 if (WaveFormatOut->wBitsPerSample < AudioRange->MinimumBitsPerSample) in CreateCompatiblePin() 557 WaveFormatOut->wBitsPerSample = AudioRange->MinimumBitsPerSample; in CreateCompatiblePin() 558 else if (WaveFormatOut->wBitsPerSample > AudioRange->MaximumBitsPerSample) in CreateCompatiblePin() 559 WaveFormatOut->wBitsPerSample = AudioRange->MaximumBitsPerSample; in CreateCompatiblePin() [all …]
|
/reactos/dll/win32/imaadp32.acm/ |
H A D | imaadp32.c | 108 wfx->wBitsPerSample == fmts[i].nBits) in ADPCM_GetFormatIndex() 119 wfx->wBitsPerSample == 16) in ADPCM_GetFormatIndex() 125 wfx->wBitsPerSample == 4 && in ADPCM_GetFormatIndex() 366 int bytesPerSample = adsi->pwfxDst->wBitsPerSample / 8; in cvtMMimaK() 617 afd->pwfx->wBitsPerSample = PCM_Formats[afd->dwFormatIndex].nBits; in ADPCM_FormatDetails() 622 (afd->pwfx->nChannels * afd->pwfx->wBitsPerSample) / 8; in ADPCM_FormatDetails() 630 afd->pwfx->wBitsPerSample = ADPCM_Formats[afd->dwFormatIndex].nBits; in ADPCM_FormatDetails() 669 adfs->pwfxDst->wBitsPerSample = 4; in ADPCM_FormatSuggest() 671 adfs->pwfxDst->wBitsPerSample = 16; in ADPCM_FormatSuggest() 749 (adsi->pwfxDst->wBitsPerSample != 16 && adsi->pwfxDst->wBitsPerSample != 8)) in ADPCM_StreamOpen() [all …]
|
/reactos/dll/win32/msadp32.acm/ |
H A D | msadp32.c | 124 wfx->wBitsPerSample == fmts[i].nBits) in ADPCM_GetFormatIndex() 135 wfx->wBitsPerSample == 16) in ADPCM_GetFormatIndex() 141 wfx->wBitsPerSample == 4 && in ADPCM_GetFormatIndex() 269 if(adsi->pwfxDst->wBitsPerSample == 8){ in cvtSSms16K() 283 }else if(adsi->pwfxDst->wBitsPerSample == 16){ in cvtSSms16K() 330 if(adsi->pwfxDst->wBitsPerSample == 8){ in cvtMMms16K() 341 }else if(adsi->pwfxDst->wBitsPerSample == 16){ in cvtMMms16K() 478 (afd->pwfx->nChannels * afd->pwfx->wBitsPerSample) / 8; in ADPCM_FormatDetails() 528 adfs->pwfxDst->wBitsPerSample = 4; in ADPCM_FormatSuggest() 530 adfs->pwfxDst->wBitsPerSample = 16; in ADPCM_FormatSuggest() [all …]
|
/reactos/modules/rosapps/applications/net/tsclient/rdesktop/ |
H A D | rdpsnd_sun.c | 103 if ((pwfx->wBitsPerSample != 8) && (pwfx->wBitsPerSample != 16)) in wave_out_format_supported() 119 if (pwfx->wBitsPerSample == 8) in wave_out_set_format() 123 else if (pwfx->wBitsPerSample == 16) in wave_out_set_format() 134 g_samplewidth = pwfx->wBitsPerSample / 8; in wave_out_set_format() 147 info.play.precision = pwfx->wBitsPerSample; in wave_out_set_format()
|
H A D | rdpsnd_oss.c | 88 if ((pwfx->wBitsPerSample != 8) && (pwfx->wBitsPerSample != 16)) in wave_out_format_supported() 102 if (pwfx->wBitsPerSample == 8) in wave_out_set_format() 104 else if (pwfx->wBitsPerSample == 16) in wave_out_set_format() 107 g_samplewidth = pwfx->wBitsPerSample / 8; in wave_out_set_format()
|
H A D | rdpsnd_libao.c | 103 if ((pwfx->wBitsPerSample != 8) && (pwfx->wBitsPerSample != 16)) in wave_out_format_supported() 118 format.bits = pwfx->wBitsPerSample; in wave_out_set_format() 125 g_samplewidth = pwfx->wBitsPerSample / 8; in wave_out_set_format()
|
H A D | rdpsnd_sgi.c | 131 if ((pwfx->wBitsPerSample != 8) && (pwfx->wBitsPerSample != 16)) in wave_out_format_supported() 149 if (pwfx->wBitsPerSample == 8) in wave_out_set_format() 151 else if (pwfx->wBitsPerSample == 16) in wave_out_set_format()
|
/reactos/dll/win32/msg711.acm/ |
H A D | msg711.c | 120 wfx->wBitsPerSample == fmts[i].nBits) in G711_GetFormatIndex() 810 adfs->pwfxDst->wBitsPerSample = 8; in G711_FormatSuggest() 812 adfs->pwfxDst->wBitsPerSample = 16; in G711_FormatSuggest() 886 adsi->pwfxDst->wBitsPerSample != 16) in G711_StreamOpen() 890 if (adsi->pwfxDst->wBitsPerSample == 16) in G711_StreamOpen() 898 adsi->pwfxSrc->wBitsPerSample != 16) in G711_StreamOpen() 902 if (adsi->pwfxSrc->wBitsPerSample == 16) in G711_StreamOpen() 913 adsi->pwfxDst->wBitsPerSample != 16) in G711_StreamOpen() 917 if (adsi->pwfxDst->wBitsPerSample == 16) in G711_StreamOpen() 925 adsi->pwfxSrc->wBitsPerSample != 16) in G711_StreamOpen() [all …]
|
/reactos/dll/win32/msgsm32.acm/ |
H A D | msgsm32.c | 148 if (wfx->wBitsPerSample != 16) in GSM_FormatValidate() 150 WARN("PCM wBitsPerSample %u\n", wfx->wBitsPerSample); in GSM_FormatValidate() 172 if (wfx->wBitsPerSample != 0) in GSM_FormatValidate() 174 WARN("GSM wBitsPerSample %u\n", wfx->wBitsPerSample); in GSM_FormatValidate() 275 afd->pwfx->wBitsPerSample = 16; in GSM_FormatDetails() 283 afd->pwfx->wBitsPerSample = 0; in GSM_FormatDetails() 325 adfs->pwfxDst->wBitsPerSample = 0; in GSM_FormatSuggest() 327 adfs->pwfxDst->wBitsPerSample = 16; in GSM_FormatSuggest()
|
/reactos/drivers/wdm/audio/filters/kmixer/ |
H A D | pin.c | 452 … Formats[Property->PinId].WaveFormatEx.wBitsPerSample = WaveFormat->WaveFormatEx.wBitsPerSample; in Pin_fnDeviceIoControl() 622 InputFormat->WaveFormatEx.wBitsPerSample, OutputFormat->WaveFormatEx.wBitsPerSample); in Pin_fnFastWrite() 624 if (InputFormat->WaveFormatEx.wBitsPerSample != OutputFormat->WaveFormatEx.wBitsPerSample) in Pin_fnFastWrite() 628 InputFormat->WaveFormatEx.wBitsPerSample, in Pin_fnFastWrite() 629 OutputFormat->WaveFormatEx.wBitsPerSample, in Pin_fnFastWrite() 646 OutputFormat->WaveFormatEx.wBitsPerSample, in Pin_fnFastWrite() 664 OutputFormat->WaveFormatEx.wBitsPerSample / 8, in Pin_fnFastWrite()
|
/reactos/dll/directx/wine/dsound/ |
H A D | mixer.c | 86 DWORD ret = pos * 32 / device->pwfx->wBitsPerSample; in DSOUND_bufpos_to_mixpos() 87 if (device->pwfx->wBitsPerSample == 32) in DSOUND_bufpos_to_mixpos() 180 if ((dsb->pwfx->wBitsPerSample == dsb->device->pwfx->wBitsPerSample) && in DSOUND_RecalcFormat() 189 dsb->convert = convertbpp[4][dsb->device->pwfx->wBitsPerSample/8 - 1]; in DSOUND_RecalcFormat() 191 …dsb->convert = convertbpp[dsb->pwfx->wBitsPerSample/8 - 1][dsb->device->pwfx->wBitsPerSample/8 - 1… in DSOUND_RecalcFormat() 205 …FillMemory(dsb->tmp_buffer, dsb->tmp_buffer_len, dsb->device->pwfx->wBitsPerSample == 8 ? 128 : 0); in DSOUND_RecalcFormat() 275 INT istep = dsb->pwfx->wBitsPerSample / 8, ostep = device->pwfx->wBitsPerSample / 8; in cp_fields() 436 if (dsb->device->pwfx->wBitsPerSample != 8 && dsb->device->pwfx->wBitsPerSample != 16) in DSOUND_MixerVol() 438 FIXME("There is no support for %d bpp\n", dsb->device->pwfx->wBitsPerSample); in DSOUND_MixerVol() 462 switch (dsb->device->pwfx->wBitsPerSample) { in DSOUND_MixerVol() [all …]
|
H A D | primary.c | 266 device->mixfunction = mixfunctions[device->pwfx->wBitsPerSample/8 - 1]; in DSOUND_PrimaryOpen() 267 device->normfunction = normfunctions[device->pwfx->wBitsPerSample/8 - 1]; in DSOUND_PrimaryOpen() 268 FillMemory(device->buffer, device->buflen, (device->pwfx->wBitsPerSample == 8) ? 128 : 0); in DSOUND_PrimaryOpen() 448 if (pwfx->nBlockAlign != pwfx->nChannels * pwfx->wBitsPerSample/8) { in DSOUND_CopyFormat() 450 pwfx->nBlockAlign = pwfx->nChannels * pwfx->wBitsPerSample/8; in DSOUND_CopyFormat() 484 wfex->wBitsPerSample, wfex->cbSize); in primarybuffer_SetFormat() 491 bpp = device->pwfx->wBitsPerSample; in primarybuffer_SetFormat() 574 device->mixfunction = mixfunctions[device->pwfx->wBitsPerSample/8 - 1]; in primarybuffer_SetFormat() 575 device->normfunction = normfunctions[device->pwfx->wBitsPerSample/8 - 1]; in primarybuffer_SetFormat() 577 …if (nSamplesPerSec != device->pwfx->nSamplesPerSec || bpp != device->pwfx->wBitsPerSample || chans… in primarybuffer_SetFormat() [all …]
|
/reactos/dll/win32/msacm32/ |
H A D | pcmconverter.c | 118 wfx->wBitsPerSample == PCM_Formats[i].nBits) in PCM_GetFormatIndex() 1061 afd->pwfx->wBitsPerSample = PCM_Formats[afd->dwFormatIndex].nBits; in PCM_FormatDetails() 1066 (afd->pwfx->nChannels * afd->pwfx->wBitsPerSample) / 8; in PCM_FormatDetails() 1107 adfs->pwfxDst->wBitsPerSample = adfs->pwfxSrc->wBitsPerSample; in PCM_FormatSuggest() 1148 switch(adsi->pwfxSrc->wBitsPerSample){ in PCM_StreamOpen() 1163 FIXME("Unsupported source bit depth: %u\n", adsi->pwfxSrc->wBitsPerSample); in PCM_StreamOpen() 1167 switch(adsi->pwfxDst->wBitsPerSample){ in PCM_StreamOpen() 1181 FIXME("Unsupported destination bit depth: %u\n", adsi->pwfxDst->wBitsPerSample); in PCM_StreamOpen() 1203 adsi->pwfxSrc->wBitsPerSample, in PCM_StreamOpen() 1204 adsi->pwfxDst->wBitsPerSample); in PCM_StreamOpen() [all …]
|
H A D | stream.c | 168 wfxSrc.wBitsPerSample = pwfxSrc->wBitsPerSample; in acmStreamOpen() 175 wfxDst.wBitsPerSample = pwfxDst->wBitsPerSample; in acmStreamOpen() 182 pwfxSrc->nBlockAlign, pwfxSrc->wBitsPerSample, pwfxSrc->cbSize); in acmStreamOpen() 186 pwfxDst->nBlockAlign, pwfxDst->wBitsPerSample, pwfxDst->cbSize); in acmStreamOpen()
|
/reactos/modules/rostests/winetests/msacm32/ |
H A D | msacm.c | 282 ok(dst->wBitsPerSample == 16, in FormatEnumProc() 283 "expected %d, got %d\n", 16, dst->wBitsPerSample); in FormatEnumProc() 857 src->wfx.wBitsPerSample = 4; in test_prepareheader() 881 dst.wBitsPerSample = 8; in test_prepareheader() 883 dst.nBlockAlign = dst.wBitsPerSample * dst.nChannels / 8; in test_prepareheader() 1158 src.wBitsPerSample = 16; in test_acmFormatSuggest() 1169 …ok(src.wBitsPerSample == dst.wBitsPerSample, "expected %d, got %d\n", src.wBitsPerSample, dst.wBit… in test_acmFormatSuggest() 1184 …ok(src.wBitsPerSample == dst.wBitsPerSample, "expected %d, got %d\n", src.wBitsPerSample, dst.wBit… in test_acmFormatSuggest() 1213 src.wBitsPerSample = 8; in test_acmFormatSuggest() 1289 src.wfx.wBitsPerSample = 0; in test_mp3() [all …]
|
/reactos/drivers/wdm/audio/sysaudio/ |
H A D | control.c | 227 MixerFormat->WaveFormatEx.wBitsPerSample = 16; in ComputeCompatibleFormat() 231 MixerFormat->WaveFormatEx.wBitsPerSample = AudioRange->MaximumBitsPerSample; in ComputeCompatibleFormat() 241 …nBlockAlign = (MixerFormat->WaveFormatEx.nChannels * MixerFormat->WaveFormatEx.wBitsPerSample) / 8; in ComputeCompatibleFormat() 242 …annels * MixerFormat->WaveFormatEx.nSamplesPerSec * (MixerFormat->WaveFormatEx.wBitsPerSample / 8); in ComputeCompatibleFormat() 254 …MaximumBitsPerSample, MixerFormat->WaveFormatEx.wBitsPerSample, ClientFormat->WaveFormatEx.wBitsPe… in ComputeCompatibleFormat()
|
/reactos/drivers/wdm/audio/drivers/CMIDriver/ |
H A D | minwave.cpp | 434 if ( ((waveFormat->wBitsPerSample == 16) || (waveFormat->wBitsPerSample == 32)) in validateFormat() 442 if ( (waveFormat->wBitsPerSample == 16) in validateFormat() 458 …if ( ((waveFormat->wBitsPerSample >= MIN_BITS_PER_SAMPLE_AC3) && (waveFormat->wBitsPerSample <= MA… in validateFormat() 468 …if ( ((waveFormat->wBitsPerSample >= MIN_BITS_PER_SAMPLE_WMA) && (waveFormat->wBitsPerSample <= MA… in validateFormat() 565 pWaveFormatEx->wBitsPerSample = 16; // SPDIF in DataRangeIntersection() 579 pWaveFormatEx->nBlockAlign = pWaveFormatEx->nChannels * pWaveFormatEx->wBitsPerSample / 8; in DataRangeIntersection() 668 WaveFormat->Format.wBitsPerSample = 16; in DataRangeIntersection() 673 WaveFormat->Samples.wValidBitsPerSample = WaveFormat->Format.wBitsPerSample; in DataRangeIntersection() 726 pWaveFormatEx->wBitsPerSample = 16; in DataRangeIntersection() 791 waveFormat->wBitsPerSample, waveFormat->nSamplesPerSec, waveFormat->nChannels, in NewStream() [all …]
|
/reactos/dll/win32/winemp3.acm/ |
H A D | mpegl3.c | 119 (wfx->wBitsPerSample == fmts[i].nBits || !fmts[i].nBits)) in MPEG3_GetFormatIndex() 256 adsi->pwfxDst->wBitsPerSample != 16) in MPEG3_StreamOpen() 618 aad->in.mBitsPerChannel = adsi->pwfxSrc->wBitsPerSample; in MPEG3_StreamOpen() 619 aad->out.mBitsPerChannel = adsi->pwfxDst->wBitsPerSample; in MPEG3_StreamOpen() 784 afd->pwfx->wBitsPerSample = PCM_Formats[afd->dwFormatIndex].nBits; in MPEG3_FormatDetails() 789 (afd->pwfx->nChannels * afd->pwfx->wBitsPerSample) / 8; in MPEG3_FormatDetails() 830 adfs->pwfxDst->wBitsPerSample = 16; in MPEG3_FormatSuggest() 849 adfs->pwfxDst->nBlockAlign = (adfs->pwfxDst->nChannels * adfs->pwfxDst->wBitsPerSample) / 8; in MPEG3_FormatSuggest()
|
/reactos/drivers/wdm/audio/drivers/ac97/ |
H A D | miniport.cpp | 719 … WaveFormat->Format.wBitsPerSample = (WORD)((PKSDATARANGE_AUDIO)MyDataRange)->MaximumBitsPerSample; in STDMETHODIMP_() 721 …WaveFormat->Format.nBlockAlign = (WaveFormat->Format.wBitsPerSample * WaveFormat->Format.nChannels… in STDMETHODIMP_() 727 WaveFormat->Samples.wValidBitsPerSample = WaveFormat->Format.wBitsPerSample; in STDMETHODIMP_() 773 WaveFormat->Format.wBitsPerSample, WaveFormat->dwChannelMask)); in STDMETHODIMP_() 866 if (waveFormat->Format.wBitsPerSample != 16) in TestDataFormat() 957 waveFormat->Format.wBitsPerSample, waveFormat->dwChannelMask)); in TestDataFormat() 963 waveFormat->Format.wBitsPerSample)); in TestDataFormat()
|