diff --git a/torchlight_changes_unloze/torchlight3/Torchlight/FFmpegAudioPlayer.py b/torchlight_changes_unloze/torchlight3/Torchlight/FFmpegAudioPlayer.py index 2b8db62..ecf11c4 100755 --- a/torchlight_changes_unloze/torchlight3/Torchlight/FFmpegAudioPlayer.py +++ b/torchlight_changes_unloze/torchlight3/Torchlight/FFmpegAudioPlayer.py @@ -61,9 +61,11 @@ class FFmpegAudioPlayer(): backwards = None, *args): if position: PosStr = str(datetime.timedelta(seconds = position)) - Command = ["/usr/bin/ffmpeg", "-ss", PosStr, "-i", uri, "-acodec", "pcm_s16le", "-ac", "1", "-ar", str(int(self.SampleRate)), "-f", "s16le", "-vn", *args] + #Command = ["/usr/bin/ffmpeg", "-ss", PosStr, "-i", uri, "-acodec", "pcm_s16le", "-ac", "1", "-ar", str(int(self.SampleRate)), "-f", "s16le", "-vn", *args] + Command = ["/usr/bin/ffmpeg", "-ss", PosStr, "-i", uri, "-af", "highpass=f=20,aresample=resampler=soxr:precision=28", "-acodec", "pcm_s16le", "-ac", "1", "-ar", str(int(self.SampleRate)), "-f", "s16le", "-vn", *args] else: - Command = ["/usr/bin/ffmpeg", "-i", uri, "-acodec", "pcm_s16le", "-ac", "1", "-ar", str(int(self.SampleRate)), "-f", "s16le", "-vn", *args] + #Command = ["/usr/bin/ffmpeg", "-i", uri, "-acodec", "pcm_s16le", "-ac", "1", "-ar", str(int(self.SampleRate)), "-f", "s16le", "-vn", *args] + Command = ["/usr/bin/ffmpeg", "-i", uri, "-af", "highpass=f=20,aresample=resampler=soxr:precision=28", "-acodec", "pcm_s16le", "-ac", "1", "-ar", str(int(self.SampleRate)),"-f", "s16le", "-vn"] self.Playing = True if dec_params: diff --git a/torchlight_changes_unloze/torchlight3/config.json b/torchlight_changes_unloze/torchlight3/config.json index 7dd50d2..f9c703a 100755 --- a/torchlight_changes_unloze/torchlight3/config.json +++ b/torchlight_changes_unloze/torchlight3/config.json @@ -3,7 +3,7 @@ { "Host": "127.0.0.1", "Port": 28015, - "SampleRate": 22050 + "SampleRate": 48000 }, "SMAPIServer": {