• 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: Too many frames to process?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Too many frames to process?


  • Subject: Re: Too many frames to process?
  • From: Jeremy Sagan <email@hidden>
  • Date: Mon, 23 Dec 2002 14:46:02 -0500

Thanks Marc, that is what I needed. However when setting
kAudioUnitProperty_MaximumFramesPerSlice the DLS/SF2 synth always
crashes if I reduce the maximumsize. First I set it to 2048 which
causes crackles in the sound, then I reduce it to 1024 (which works if
not changed) and I get this:

Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000000

Thread 0 Crashed:
#0 0x90073f64 in bzero
#1 0x01d61828 in MatrixReverb2::Reset()
#2 0x01d363bc in NoteScheduler::Reset()
#3 0x01d37cb4 in SynthInstance::Reset()
#4 0x01d2fd44 in SynthInstance::Reset(unsigned long, unsigned long)
#5 0x01d4204c in
AUBase::ComponentEntryDispatch(ComponentParameters*, AUBase*)
#6 0x01d2c0f4 in
MusicDeviceBase::ComponentEntryDispatch(ComponentParameters*,
MusicDeviceBase*)
#7 0x01d7a678 in
ComponentEntryPoint<SynthInstance>::Dispatch(ComponentParameters*,
SynthInstance*)
#8 0x91eb0ee0 in AudioUnitReset

Any pointers to fixing this would be greatly appreciated.

On Monday, December 23, 2002, at 07:13 AM, Marc Poirier wrote:

>>> Why do all audiounits that I have tried return
>>> kAudioUnitErr_TooManyFramesToProcess
>>> when passed a buffer with > 1024 frames?
>>>
>>> Jeremy
>>>
>>
>> AUBase has a member mMaxFramesPerSlice. See AUBase.cpp -
>> AUBase::DoRender() for what's happening.
>>
>> Fortunately, there's AUBase::SetMaxFramesPerSlice(UInt32 nFrames)
>> which
>> reallocates Buffers and fires PropertyChanged() (also in AUBase.cpp).
>> Have you tried this?
>
>
> Actually, a host app has absolutely no awareness of AUBase and what
> goes
> on there (that is all stuff for make writing AUs nice of the AU author
> :).
> It can only communicate with an AU via Component Manager calls and the
> extended parameters for AUs. At any rate, the property that you want
> to
> investigate (and probably are not setting) is
> kAudioUnitProperty_MaximumFramesPerSlice.
>
> Marc
> _______________________________________________
> coreaudio-api mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/coreaudio-api
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: DLS Synth and 10.2.3
  • Next by Date: AU enumeration problem
  • Previous by thread: Re: Too many frames to process?
  • Next by thread: MIDI in Classic & X
  • Index(es):
    • Date
    • Thread