aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/Playback/Hls/VideoHlsService.cs
diff options
context:
space:
mode:
authorLukePulverenti <luke.pulverenti@gmail.com>2013-03-20 10:38:56 -0400
committerLukePulverenti <luke.pulverenti@gmail.com>2013-03-20 10:38:56 -0400
commitcce219cc99d50e191bca88583e8c80b29e4203c3 (patch)
treee7c3a6bec1fec95c14a4e919dc229eb8cc08e2a2 /MediaBrowser.Api/Playback/Hls/VideoHlsService.cs
parentbda23e1a23a9b3ce5f279b6c453cba2486953871 (diff)
#71 - Boost volume when converting from 6ch to 2ch
Diffstat (limited to 'MediaBrowser.Api/Playback/Hls/VideoHlsService.cs')
-rw-r--r--MediaBrowser.Api/Playback/Hls/VideoHlsService.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/MediaBrowser.Api/Playback/Hls/VideoHlsService.cs b/MediaBrowser.Api/Playback/Hls/VideoHlsService.cs
index 62ed0f35f..2b822dd1e 100644
--- a/MediaBrowser.Api/Playback/Hls/VideoHlsService.cs
+++ b/MediaBrowser.Api/Playback/Hls/VideoHlsService.cs
@@ -72,6 +72,12 @@ namespace MediaBrowser.Api.Playback.Hls
if (channels.HasValue)
{
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)