• 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
ComplexPlayThru sample & buffers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ComplexPlayThru sample & buffers


  • Subject: ComplexPlayThru sample & buffers
  • From: Paul Fredlein <email@hidden>
  • Date: Fri, 25 Nov 2005 14:47:25 +1000

Hi,

I've been trying to understand the ComplexPlayThru sample code. I only wanted to use one buffer of a fixed size to record only x seconds of audio then play it back.

ComponentResult AudioUnitRender(
   AudioUnit                     ci,
   AudioUnitRenderActionFlags*   ioActionFlags,
   const AudioTimeStamp*         inTimeStamp,
   UInt32                        inOutputBusNumber,
   UInt32                        inNumberFrames,
   AudioBufferList*              ioData
)

Do I have to supply the number of frames to render or will it just stop once the buffer is full? Can I have only one buffer of the appropriate size or do I have to have multiple small buffer waiting in the queue? Or something... bit confused on the whole thing. (SimplePlayThru sample doesn't work on my Mac, I think it's because I only have a USB input device no Apple input device such as a microphone).

Any help or pointers on where to start appreciated.

Thanks,

Paul



 _______________________________________________
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

  • Prev by Date: Allocating an AudioBufferList
  • Next by Date: simple AU buffer process in Cocoa
  • Previous by thread: Re: Allocating an AudioBufferList
  • Next by thread: simple AU buffer process in Cocoa
  • Index(es):
    • Date
    • Thread