Re: Catching output from OpenAL
Re: Catching output from OpenAL
- Subject: Re: Catching output from OpenAL
- From: tahome izwah <email@hidden>
- Date: Mon, 6 Dec 2010 15:39:11 +0100
A bit of an OT reply but are you sure that pitch shifting is what you
need here? You could probably get away by transposing (sample rate
converting) the notes which is several orders of magnitude faster than
pitch shifting.
--th
2010/12/6 Pi <email@hidden>:
> Hello people,
>
> I am adapting some very nice code that takes in a bunch of 15 or so sampled
> piano notes, like Eb3, F#4, B5, and then plays any note you ask of it, by
> pitch shifting the nearest sample.
> I hesitate to post code here as Google always does something horrible with
> it. Code is
> here: http://stackoverflow.com/questions/4364901/ios-pitch-shifting-piping-output-from-openal-into-a-buffer
> I am running into trouble as I need to play a big bunch of notes
> simultaneously, and the iPhone just can't handle it. I guess a dozen
> concurrent FFTs is pushing it a bit.
> so I want to pre-buffer everything. I can't see how to do this.
> How can I catch the output of OpenAL (ie this line:)
>
> alSourcePlay(source->sourceId);
>
> and somehow pipe this into a buffer, or connect it up to some audio unit so
> I can intercept the render callback, etc? ie how can I get access to it in
> any way?
> Sam
_______________________________________________
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