• 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
iPhone RemoteIO partial input render
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

iPhone RemoteIO partial input render


  • Subject: iPhone RemoteIO partial input render
  • From: Zachary Kulis <email@hidden>
  • Date: Thu, 19 Nov 2009 08:52:36 -0500

Hi,

I am using the RemoteIO audio unit to record audio samples and store
them in a circular queue (I've disabled buffer allocation in the audio
unit). I've noticed that AudioUnitRender() does not support partial
retrieval of the available input samples (iPhone OS 2.2.1-3.1). If I
prepare an AudioBuffer struct with mDataByteSize set to fewer than the
available bytes (as provided by the input callback), then the
AudioUnitRender() function still returns *ALL* of the available bytes
and actually sets the mDataByteSize field to the number of bytes returned.

I would like to be able to do the render (sample retrieval) operation in
two steps when wrapping around to the head of my circular queue. As it
is now, I must do a temporary render into a single buffer, and then do
two memcpy() operations from this temporary buffer to the circular queue
when wrapping to the head. This is hugely inefficient, as it would be
better just to write directly to the circular queue. However, I would
need to be able to perform two partial renders of the available input
samples.

Am I missing something here, or is this a bug/unsupported feature of the
RemoteIO audio unit?

Thank you,
Zachary
 _______________________________________________
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: iPhone RemoteIO partial input render
      • From: William Stewart <email@hidden>
  • Prev by Date: Re: HAL user-land plugin / SampleHardwarePlugin
  • Next by Date: iPhone RemoteIO timeline strange behavior
  • Previous by thread: Re: ComponentInstanceRecord from AUBase
  • Next by thread: Re: iPhone RemoteIO partial input render
  • Index(es):
    • Date
    • Thread