Stopping Audio from a converter data proc
Stopping Audio from a converter data proc
- Subject: Stopping Audio from a converter data proc
- From: "Tracy Lakin" <email@hidden>
- Date: Thu, 30 May 2002 20:03:35 -0700
- Thread-topic: Stopping Audio from a converter data proc
Hi,
I've written a simple audio file player to test an Audio Unit.
When the file is at the end, it is in the Audio Converter's Input Data Proc that this is discovered. There is no more data.
I tried calling AudioOutputUnitStop from within the Input Data Proc. Audio does stop, but will not start again with the analogous AudioOutputUnitStart. I am using the Default Audio Output.
Are there limits on what you can do in the Audio Converter's Input Data Proc? I did notice that after stopping the audio, the Input Data Proc might get called again. I have code that picks this up, and returns a dataSize of zero, with a valid pointer to the "empty" data.
I used the Core Audio "DefaultOutputUnit" example as a start, adding Cocoa and IB parts, with some Daisy (Carbon) AIFF code, modified.
Tracy
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.