#71 - Boost volume when converting from 6ch to 2ch

pull/702/head
LukePulverenti 12 years ago
parent bda23e1a23
commit cce219cc99

@ -72,6 +72,12 @@ namespace MediaBrowser.Api.Playback.Hls
if (channels.HasValue) if (channels.HasValue)
{ {
args += " -ac " + channels.Value; args += " -ac " + channels.Value;
// Boost volume to 200% when downsampling from 6ch to 2ch
if (channels.Value <= 2 && state.AudioStream.Channels.HasValue && state.AudioStream.Channels.Value > 5)
{
args += " -vol 512";
}
} }
if (state.Request.AudioSampleRate.HasValue) if (state.Request.AudioSampleRate.HasValue)

@ -195,6 +195,12 @@ namespace MediaBrowser.Api.Playback.Progressive
if (channels.HasValue) if (channels.HasValue)
{ {
args += " -ac " + channels.Value; args += " -ac " + channels.Value;
// Boost volume to 200% when downsampling from 6ch to 2ch
if (channels.Value <= 2 && state.AudioStream.Channels.HasValue && state.AudioStream.Channels.Value > 5)
{
args += " -vol 512";
}
} }
if (request.AudioSampleRate.HasValue) if (request.AudioSampleRate.HasValue)

Loading…
Cancel
Save