Lines Matching refs:wfx
478 WAVEFORMATEX wfx; in gst_directsound_sink_prepare() local
487 memset (&wfx, 0, sizeof (wfx)); in gst_directsound_sink_prepare()
489 wfx.cbSize = sizeof (wfx); in gst_directsound_sink_prepare()
490 wfx.wFormatTag = WAVE_FORMAT_PCM; in gst_directsound_sink_prepare()
491 wfx.nChannels = spec->info.channels; in gst_directsound_sink_prepare()
492 wfx.nSamplesPerSec = spec->info.rate; in gst_directsound_sink_prepare()
493 wfx.wBitsPerSample = (spec->info.bpf * 8) / wfx.nChannels; in gst_directsound_sink_prepare()
494 wfx.nBlockAlign = spec->info.bpf; in gst_directsound_sink_prepare()
495 wfx.nAvgBytesPerSec = wfx.nSamplesPerSec * wfx.nBlockAlign; in gst_directsound_sink_prepare()
500 gst_util_uint64_scale_int (wfx.nAvgBytesPerSec, spec->buffer_time, in gst_directsound_sink_prepare()
506 gst_util_uint64_scale_int (wfx.nAvgBytesPerSec, spec->latency_time, in gst_directsound_sink_prepare()
512 wfx.cbSize = 0; in gst_directsound_sink_prepare()
513 wfx.wFormatTag = WAVE_FORMAT_DOLBY_AC3_SPDIF; in gst_directsound_sink_prepare()
514 wfx.nChannels = 2; in gst_directsound_sink_prepare()
515 wfx.nSamplesPerSec = 48000; in gst_directsound_sink_prepare()
516 wfx.wBitsPerSample = 16; in gst_directsound_sink_prepare()
517 wfx.nBlockAlign = wfx.wBitsPerSample / 8 * wfx.nChannels; in gst_directsound_sink_prepare()
518 wfx.nAvgBytesPerSec = wfx.nSamplesPerSec * wfx.nBlockAlign; in gst_directsound_sink_prepare()
535 GST_AUDIO_INFO_BPF (&spec->info), wfx.nSamplesPerSec, wfx.wBitsPerSample, in gst_directsound_sink_prepare()
536 wfx.nBlockAlign, wfx.nAvgBytesPerSec, dsoundsink->buffer_size); in gst_directsound_sink_prepare()
546 descSecondary.lpwfxFormat = (WAVEFORMATEX *) & wfx; in gst_directsound_sink_prepare()
844 WAVEFORMATEX wfx; in gst_directsound_probe_supported_formats() local
857 memset (&wfx, 0, sizeof (wfx)); in gst_directsound_probe_supported_formats()
858 wfx.cbSize = 0; in gst_directsound_probe_supported_formats()
859 wfx.wFormatTag = WAVE_FORMAT_DOLBY_AC3_SPDIF; in gst_directsound_probe_supported_formats()
860 wfx.nChannels = 2; in gst_directsound_probe_supported_formats()
861 wfx.nSamplesPerSec = 48000; in gst_directsound_probe_supported_formats()
862 wfx.wBitsPerSample = 16; in gst_directsound_probe_supported_formats()
863 wfx.nBlockAlign = 4; in gst_directsound_probe_supported_formats()
864 wfx.nAvgBytesPerSec = wfx.nSamplesPerSec * wfx.nBlockAlign; in gst_directsound_probe_supported_formats()
871 descSecondary.lpwfxFormat = &wfx; in gst_directsound_probe_supported_formats()