summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAndoni Morales Alastruey <ylatuya@gmail.com>2012-05-08 16:23:42 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2012-07-04 19:54:51 +0200
commite815d083429b1ff95912e296c972ef5f9ec2c8a4 (patch)
treeef9d537421c07f0d98c0af6585249b0f09f17ed2 /sys
parent7d64e16b30f0b46a2178a25af809ec6dc790069d (diff)
directsoundsink: force 48000 kHz force AC-3 over spdif
Diffstat (limited to 'sys')
-rw-r--r--sys/directsound/gstdirectsoundsink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/directsound/gstdirectsoundsink.c b/sys/directsound/gstdirectsoundsink.c
index fae5fa0d3..df56c6508 100644
--- a/sys/directsound/gstdirectsoundsink.c
+++ b/sys/directsound/gstdirectsoundsink.c
@@ -440,7 +440,7 @@ gst_directsound_sink_prepare (GstAudioSink * asink,
wfx.cbSize = 0;
wfx.wFormatTag = WAVE_FORMAT_DOLBY_AC3_SPDIF;
wfx.nChannels = 2;
- wfx.nSamplesPerSec = spec->info.rate;
+ wfx.nSamplesPerSec = 48000;
wfx.wBitsPerSample = 16;
wfx.nBlockAlign = wfx.wBitsPerSample / 8 * wfx.nChannels;
wfx.nAvgBytesPerSec = wfx.nSamplesPerSec * wfx.nBlockAlign;