• 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
Re: SampleUSBAudioPlugin buffer sizes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SampleUSBAudioPlugin buffer sizes


  • Subject: Re: SampleUSBAudioPlugin buffer sizes
  • From: Iain McCowan <email@hidden>
  • Date: Fri, 30 Dec 2011 08:02:25 +1000

Brett,

Thanks for your clear answer on this.  Indeed, I observed fairly consistent buffer sizes coming in, but these were sometimes split across two calls.  We have since implemented our own buffering as you recommended.

regards,

Iain

On Tue, Dec 27, 2011 at 7:59 PM, Brett George <email@hidden> wrote:
You should not make any assumptions about the numSampleFrames value. If your code requires a fixed buffer size, you will need to buffer it yourself.

Brett.


On Dec 16, 2011, at 8:09 AM, Iain McCowan <email@hidden> wrote:

> Hello,
>
> I am working to implement a custom DSP plug-in to the standard USB audio driver following Apple's SampleUSBAudioPlugin example.
>
> Can anyone out there tell me what the specified behaviour is for the numSampleFrames in the process function:
>
> pluginProcess (float * mixBuf, UInt32 numSampleFrames, UInt32 numChannels)
>
> My DSP needs a fixed buffer size, so I imagine I need to implement a circular buffer in my code to guarantee this, in case numSampleFrames varies.
>
> I can log this to get empirical numbers, but wondered if there is a specification that tells me:
>
> - what the min and max values for numSampleFrames will be,
> - or whether the numSampleFrames will be fixed
> - or whether it is possible to configure the numSampleFrames you want
>
> Is this just related to the USB packet size?  My device is class 2.0 compliant, 48 kHz, 24-bit, 7 channel.
>
> thanks,
>
> Iain.
> _______________________________________________
> 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

 _______________________________________________
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

References: 
 >SampleUSBAudioPlugin buffer sizes (From: Iain McCowan <email@hidden>)
 >Re: SampleUSBAudioPlugin buffer sizes (From: Brett George <email@hidden>)

  • Prev by Date: Re: USB Audio driver and THREAD_TIME_CONSTRAINT_POLICY
  • Next by Date: MIDI CC and MIDI Clock (herve.noury)
  • Previous by thread: Re: SampleUSBAudioPlugin buffer sizes
  • Next by thread: 64bits cocoa UI issue in Mainstage and Logic
  • Index(es):
    • Date
    • Thread