shithub: treason

Download patch

ref: 9bbed008d94cd67aacccfcb7128a2510a77a16b2
parent: 54665a8d26c814f399e8dfd7bc85cb7e00484712
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Mon Dec 14 08:50:47 EST 2020

opus: force 44100 sampling rate and stereo

--- a/stream_audio.c
+++ b/stream_audio.c
@@ -49,7 +49,7 @@
 		}
 		/* FIXME why oh why */
 		if(s->fmt == FmtOpus)
-			execl(prog, prog, "-", "-", nil);
+			execl(prog, prog, "--rate", "44100", "--force-stereo", "-", "-", nil);
 		else
 			execl(prog, prog, nil);
 		sysfatal("exec: %r");