Commit e815d083 authored by Andoni Morales Alastruey's avatar Andoni Morales Alastruey Committed by Sebastian Dröge
Browse files

directsoundsink: force 48000 kHz force AC-3 over spdif

parent 7d64e16b
...@@ -440,7 +440,7 @@ gst_directsound_sink_prepare (GstAudioSink * asink, ...@@ -440,7 +440,7 @@ gst_directsound_sink_prepare (GstAudioSink * asink,
wfx.cbSize = 0; wfx.cbSize = 0;
wfx.wFormatTag = WAVE_FORMAT_DOLBY_AC3_SPDIF; wfx.wFormatTag = WAVE_FORMAT_DOLBY_AC3_SPDIF;
wfx.nChannels = 2; wfx.nChannels = 2;
wfx.nSamplesPerSec = spec->info.rate; wfx.nSamplesPerSec = 48000;
wfx.wBitsPerSample = 16; wfx.wBitsPerSample = 16;
wfx.nBlockAlign = wfx.wBitsPerSample / 8 * wfx.nChannels; wfx.nBlockAlign = wfx.wBitsPerSample / 8 * wfx.nChannels;
wfx.nAvgBytesPerSec = wfx.nSamplesPerSec * wfx.nBlockAlign; wfx.nAvgBytesPerSec = wfx.nSamplesPerSec * wfx.nBlockAlign;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment