• Home
  • Raw
  • Download

Lines Matching refs:wfx

477   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()
510 gst_util_uint64_scale_int (spec->buffer_time, wfx.nAvgBytesPerSec, in gst_directsound_src_prepare()
516 gst_util_uint64_scale (spec->latency_time, wfx.nAvgBytesPerSec, in gst_directsound_src_prepare()
547 descSecondary.lpwfxFormat = &wfx; in gst_directsound_src_prepare()
559 wfx.nAvgBytesPerSec, dsoundsrc->buffer_size, spec->segsize, in gst_directsound_src_prepare()
569 GST_AUDIO_INFO_BPF (&spec->info), wfx.nSamplesPerSec, wfx.wBitsPerSample, in gst_directsound_src_prepare()
570 wfx.nBlockAlign, wfx.nAvgBytesPerSec); in gst_directsound_src_prepare()
583 ("Unexpected width %d", wfx.wBitsPerSample), (NULL)); in gst_directsound_src_prepare()