Re: Starting with coreaudio API (beginner)
Re: Starting with coreaudio API (beginner)
- Subject: Re: Starting with coreaudio API (beginner)
- From: email@hidden
- Date: Sat, 15 Oct 2005 15:49:57 -0700
Jacob,
PlayAudioFileLite can be a useful first program, but "as is" it
will only reliably play short soundfiles.
Extending it to longer files -- if you read them directly from disk
in response to a pull from the Output Unit -- will probably create
intermittent audio dropouts. (It did, here.)
The solution is to double-buffer or ring-buffer the file input,
so that a file-reader thread is filling one part of the buffer
as the audio is being served from another part of the buffer.
Good luck!
Peter
At 12:17 PM 10/15/05, Cynthia Bruyns wrote:
Hi Jacob,
Did you try this page: http://developer.apple.com/referencelibrary/
GettingStarted/GS_MusicAudio/
Or this page: http://developer.apple.com/samplecode/MusicAudio/
idxCoreAudio-date.html
The PlayAudioFileLite might be a good starter.
Happy coding,
Cynthia
On Oct 15, 2005, at 12:05 PM, email@hidden
wrote:
Hi
I've been writing applications on Mac OS X using Xcode for a few
months and
am just trying to start integrating sound into my applications.
All I've done so far is use sysbeep. I would like to use some wav
files
I've got, I've skimmed throught the documentation on the Core Audio
API
though don't really know where to start.
Thanks
_______________________________________________
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
_______________________________________________
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