Set the volume default to 1 as @hydrabolt intended, fixes #154

This commit is contained in:
meew0
2016-01-30 10:42:13 +01:00
parent 7fb39b6dc0
commit 358c40c355
2 changed files with 4 additions and 4 deletions

View File

@@ -65,7 +65,7 @@ export default class AudioEncoder {
'-i', '-',
'-f', 's16le',
'-ar', '48000',
'-af', 'volume=' + (options.volume || 0.25),
'-af', 'volume=' + (options.volume || 1),
'-ac', 2,
'pipe:1'
], {stdio: ['pipe', 'pipe', 'ignore']});
@@ -99,7 +99,7 @@ export default class AudioEncoder {
'-i', file,
'-f', 's16le',
'-ar', '48000',
'-af', 'volume=' + (options.volume || 0.25),
'-af', 'volume=' + (options.volume || 1),
'-ac', 2,
'pipe:1'
], { stdio: ['pipe', 'pipe', 'ignore'] });