From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from wopr.sciops.net ([216.126.196.60]) by ewsd; Mon Jan 13 17:47:31 EST 2020 Received: (qmail 53752 invoked by uid 1012); 13 Jan 2020 14:47:23 -0800 Date: Mon, 13 Jan 2020 14:47:23 -0800 From: qwx To: 9front@9front.org Subject: opus support Message-ID: <20200113224723.GA53727@wopr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: plugin realtime-scale browser API Hello, I recently investigated if it's worth it to me to replace mp3 with another codec such as opus for storing my music library in. I've concluded that it is. Based on mischief's own earlier efforts, I've ported the latest versions of xiph's opusdec and opusenc implementation along with their supporting libraries. I've also changed their basic usage to adhere with our own, and their defaults to conform with default audio(3) format. Additionally, I've added changes to file(1), play(1), /sys/lib/plumb/basic and the audio(1) manpage to integrate these fully. For those interested, here's a summary of my investigations: http://nopenopenope.net/posts/audcomp It also contains instructions for setting opus up. I have not updated my contrib directory yet, sorry. Note that the mkfiles the patches add for building the alien code need work. I am not sure this is worth importing into 9front, although I'd welcome it. The programs and libraries are over 70k lines of code. Cheers, qwx