bsdelf / mous

Lightweight audio player & converter for FreeBSD/Linux/macOS
BSD 2-Clause "Simplified" License
71 stars 17 forks source link

coreaudio backend #3

Closed Wang-Yue closed 7 years ago

Wang-Yue commented 8 years ago

libao is not under active development. It's mac output driver is outdated, and calls deprecated Carbon API.

It's better to have a native CoreAudio plugin. I've written one for CMUS: https://github.com/cmus/cmus/blob/master/coreaudio.c

I can relicense the file to you under BSDL. You won't need most part of it (output device selection, sample rate synchronization, device hogging code, channel mapping), so it should be trivial to convert that code to C++.

bsdelf commented 7 years ago

I do not want to convert that code into C++. Instead, I'm going to import the coreaudio related code from CMUS project directly and make as less patch as possible: https://github.com/bsdelf/mous/commit/cb8e244e9f4c7d3e56080d6db3c6cefd1fa90369