Skip to content
Permalink
Browse files

coreaudio: Move from AudioUnits to AudioQueues.

AudioQueues are available in Mac OS X 10.5 and later (and iOS 2.0 and later).
Their API is much more clear (and if you don't mind the threading tapdance
to get its own CFRunLoop) much easier to use in general for our purposes.

As an added benefit: they seemlessly deal with format conversion in ways
AudioUnits don't: for example, my MacBook Pro's built-in microphone won't
capture at 8000Hz and the AudioUnit version wouldn't resample to hide this
fact; the AudioQueue version, however, can handle this.
  • Loading branch information
icculus committed Sep 4, 2016
1 parent 3b53304 commit 0265d3af9b0f61d49a0f4f85f5fa24672bbee539
Showing with 173 additions and 206 deletions.
  1. +165 −202 src/audio/coreaudio/SDL_coreaudio.c
  2. +8 −4 src/audio/coreaudio/SDL_coreaudio.h

0 comments on commit 0265d3a

Please sign in to comment.