sys/osxaudio/: Rewrite caps setting and ring buffer initialisation.
authorMichael Smith <msmith@xiph.org>
Tue, 26 Aug 2008 21:13:08 +0000 (21:13 +0000)
committerMichael Smith <msmith@xiph.org>
Tue, 26 Aug 2008 21:13:08 +0000 (21:13 +0000)
commit192c1b942b5a727b03223869e7213af1941b0d5d
tree977ed239522f2b38c229710fd952293bc26b8119
parent2ea5c05241edb2ca63967c3056a5ee3347bce576
sys/osxaudio/: Rewrite caps setting and ring buffer initialisation.

Original commit message from CVS:
* sys/osxaudio/Makefile.am:
* sys/osxaudio/gstosxaudio.c:
* sys/osxaudio/gstosxaudiosink.c:
* sys/osxaudio/gstosxaudiosink.h:
* sys/osxaudio/gstosxaudiosrc.c:
* sys/osxaudio/gstosxaudiosrc.h:
* sys/osxaudio/gstosxringbuffer.c:
* sys/osxaudio/gstosxringbuffer.h:
Rewrite caps setting and ring buffer initialisation.
Previously we never told CoreAudio what format we were going to send it,
so it only worked due to luck, and not at all on some hardware.
Now we explicitly advertise what formats the hardware supports, and then
configure the selected one correctly.
ChangeLog
sys/osxaudio/Makefile.am
sys/osxaudio/gstosxaudio.c
sys/osxaudio/gstosxaudiosink.c
sys/osxaudio/gstosxaudiosink.h
sys/osxaudio/gstosxaudiosrc.c
sys/osxaudio/gstosxaudiosrc.h
sys/osxaudio/gstosxringbuffer.c
sys/osxaudio/gstosxringbuffer.h