Libao audiounit port
Libao audiounit port
- Subject: Libao audiounit port
- From: Michael Guntsche <email@hidden>
- Date: Tue, 31 Jan 2006 00:06:21 +0100
Hi,
First of all, I am fairly new to audio programming so please don't
"kill" me if I am missing the obvious here.
I am trying to port the macosx part of the libao library http://
xiph.org/ao to Audiounits, since the current implementation only
supports 16-bit stereo 44.100 sound. After looking around in some
sample code (SDL, arts) I implemented a version that, hold your
breath, actually produces sounds (http://mike.it-loops.com/dump/
ao_macosx.c).
But there are some open issues I am not able to fix.
1.) BitsPerChannel is fixed to 32 and the Format is fixed to
kAudioFormatFlagsNativeFloatPacked.
I left much of the orginal code untouched in this regard but I really
want to be able to output 8,16,24,32 bit sound. I know that this is
possible but I could not figure out how. Changing mBitsPerChannel and
mFormatFlags just gives me garbled sound or no sound at all. I think
that the callback needs be changed to fix this, but I have no clue
how to do this exactly. :)
2.) Frequencies different then 44.100 produce noticeable repeating
clicks. I am pretty sure this is somehow related to issue 1 but I
cannot figure out how to solve it.
Maybe someone with more experience could have a short look at my code
and point me in the right direction.
Thanks in advance,
Michael
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden