Fix pipeline wit direct output to ALSA

In the new version of gstreamer, alsasink supports floating samples, so it seems to be bypassing audioconvert.
Integer samples make downmixing work correctly.
This commit is contained in:
Mark Furneaux 2016-06-03 11:49:22 -04:00
parent 3fc6208248
commit 41d323332a

View File

@ -418,7 +418,7 @@ bool GstEnginePipeline::Init() {
// Ensure that the audio output of the tee does not autonegotiate to 16 bit
GstCaps* caps = gst_caps_new_simple("audio/x-raw", "format", G_TYPE_STRING,
"F32LE", NULL);
"S32LE", NULL);
// Add caps for fixed sample rate and mono, but only if requested
if (sample_rate_ != GstEngine::kAutoSampleRate && sample_rate_ > 0) {