Home
last modified time | relevance | path

Searched refs:wfx (Results 1 – 4 of 4) sorted by relevance

/third_party/gstreamer/gstplugins_good/sys/directsound/
Dgstdirectsoundsink.c478 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()
[all …]
/third_party/gstreamer/gstplugins_bad/sys/directsound/
Dgstdirectsoundsrc.c477 WAVEFORMATEX wfx; /* Wave format structure */ in gst_directsound_src_prepare() local
486 memset (&wfx, 0, sizeof (WAVEFORMATEX)); in gst_directsound_src_prepare()
487 wfx.wFormatTag = WAVE_FORMAT_PCM; in gst_directsound_src_prepare()
488 wfx.nChannels = GST_AUDIO_INFO_CHANNELS (&spec->info); in gst_directsound_src_prepare()
489 wfx.nSamplesPerSec = GST_AUDIO_INFO_RATE (&spec->info); in gst_directsound_src_prepare()
490 wfx.wBitsPerSample = GST_AUDIO_INFO_BPF (&spec->info) * 8 / wfx.nChannels; in gst_directsound_src_prepare()
491 wfx.nBlockAlign = GST_AUDIO_INFO_BPF (&spec->info); in gst_directsound_src_prepare()
492 wfx.nAvgBytesPerSec = wfx.nSamplesPerSec * wfx.nBlockAlign; in gst_directsound_src_prepare()
494 wfx.cbSize = 0; in gst_directsound_src_prepare()
496 if (wfx.wBitsPerSample != 16 && wfx.wBitsPerSample != 8) in gst_directsound_src_prepare()
[all …]
/third_party/gstreamer/gstplugins_good/sys/waveform/
Dgstwaveformsink.c345 WAVEFORMATEX wfx; in gst_waveform_sink_prepare() local
350 memset (&wfx, 0, sizeof (wfx)); in gst_waveform_sink_prepare()
351 wfx.cbSize = 0; in gst_waveform_sink_prepare()
352 wfx.wFormatTag = WAVE_FORMAT_PCM; in gst_waveform_sink_prepare()
353 wfx.nChannels = spec->info.channels; in gst_waveform_sink_prepare()
354 wfx.nSamplesPerSec = spec->info.rate; in gst_waveform_sink_prepare()
355 wfx.wBitsPerSample = (spec->info.bpf * 8) / wfx.nChannels; in gst_waveform_sink_prepare()
356 wfx.nBlockAlign = spec->info.bpf; in gst_waveform_sink_prepare()
357 wfx.nAvgBytesPerSec = wfx.nSamplesPerSec * wfx.nBlockAlign; in gst_waveform_sink_prepare()
364 &wfx, (DWORD_PTR) waveOutProc, (DWORD_PTR) wfsink, CALLBACK_FUNCTION); in gst_waveform_sink_prepare()
/third_party/gstreamer/gstplugins_bad/sys/dshowdecwrapper/
Dgstdshowaudiodec.cpp736 mpeg1_format->wfx.nChannels = adec->channels; in dshowaudiodec_set_input_format()
768 mpeg1_format->wfx.nBlockAlign = (WORD) samples; in dshowaudiodec_set_input_format()
769 mpeg1_format->wfx.nSamplesPerSec = adec->rate; in dshowaudiodec_set_input_format()
771 mpeg1_format->wfx.nAvgBytesPerSec = mpeg1_format->dwHeadBitrate / 8; in dshowaudiodec_set_input_format()