• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Catching output from OpenAL
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Catching output from OpenAL


  • Subject: Catching output from OpenAL
  • From: Pi <email@hidden>
  • Date: Mon, 6 Dec 2010 21:24:05 +0700

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

  • Follow-Ups:
    • Re: Catching output from OpenAL
      • From: Zack Morris <email@hidden>
    • Re: Catching output from OpenAL
      • From: tahome izwah <email@hidden>
    • Re: Catching output from OpenAL
      • From: Paul Davis <email@hidden>
  • Prev by Date: Cannot see audio device
  • Next by Date: Re: Catching output from OpenAL
  • Previous by thread: Re: Cannot see audio device
  • Next by thread: Re: Catching output from OpenAL
  • Index(es):
    • Date
    • Thread