shithub: patch

Download patch

ref: 6a44dcea2cfd720f5a772e4971d8fc832f22043f
parent: f2b2f57fb540795814ef66e95eb7aaf1434e8e47
author: qwx <qwx@sciops.net>
date: Sun Jan 12 11:31:42 EST 2020

add play-opus: detect and play ogg/opus files

--- /dev/null
+++ b/play-opus
@@ -1,0 +1,24 @@
+diff -r d6c26034ff13 rc/bin/play
+--- a/rc/bin/play	Sun Jan 12 00:19:39 2020 +0100
++++ b/rc/bin/play	Sun Jan 12 17:30:21 2020 +0100
+@@ -46,8 +46,10 @@
+ 					}
+ 				}
+ 			}
+-		case *ogg* *vorbis*
++		case *ogg*vorbis*
+ 			audio/oggdec
++		case *ogg*opus*
++			audio/opusdec --quiet --rate 44100 --force-stereo - -
+ 		case *mp3* *mpeg*
+ 			audio/mp3dec
+ 		case *wave*
+@@ -68,6 +70,8 @@
+ 				audio/mp3dec
+ 			case *.ogg *.OGG
+ 				audio/oggdec
++			case *.opus *.OPUS
++				audio/opusdec --quiet --rate 44100 --force-stereo - -
+ 			case *.wav *.WAV
+ 				audio/wavdec
+ 			case *.flac *.FLAC