Re: Using the new MovieAudioExtractionFillBuffer() on a MIDI file
Re: Using the new MovieAudioExtractionFillBuffer() on a MIDI file
- Subject: Re: Using the new MovieAudioExtractionFillBuffer() on a MIDI file
- From: William Stewart <email@hidden>
- Date: Thu, 13 Oct 2005 15:25:28 -0700
Its very easy to write some code using core audio's APIs to do this.
You could start with the PlaySequence demo, but instead of using the
default device output unit, use the generic output unit.
Then, after you've started the music player, that is a signal for you
to start pulling on this generic output unit - which means just
calling its AudioUnitRender function. You keep calling this until
you've got to the end of the sequence.
After each call to AudioUnitRender, you grab the buffer and write it
to a file - see the ConvertFile's use of the ExtAudioFile API - its
pretty easy.
This is probably a good addition to the SDK examples - but in the
meantime, we'll be happy enough to help
Bill
On 13/10/2005, at 2:28 PM, David M. Cotter wrote:
does it work for you? i think it's reasonable to expect it to
work. is it true I have to use some OLD API to convert it to an
AIFF first??
_______________________________________________
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
--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________
__
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________
__
_______________________________________________
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