Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Streaming Graph to file without a sound




On Jun 19, 2006, at 3:00 PM, William Stewart wrote:

Brian,

I'm not sure what the segfault is - I've never heard of this before. The render code is pretty straight forward:
outputBuffer.Prepare();
AudioUnitRenderActionFlags actionFlags = 0;
require_noerr (result = AudioUnitRender (outputUnit, &actionFlags, &tStamp, 0, numFrames, outputBuffer.ABL()), fail);


and actionFlags are not being used after the call to AudioUnitRender.



It's in the render callback that I use. It's some issue with ExtAudioFileWriteAsync. Is the kAudioUnitRenderAction_OutputIsSilence is set on PostRender but not on PreRender, the call to the writing function segfaults. This happens a bit with our code. It's very possible we have a problem upstream. To get around it I explicitly check for those silence flags.


_______________________________________________ Do not post admin requests to the list. They will be ignored. Coreaudio-api mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/coreaudio-api/email@hidden

This email sent to email@hidden
References: 
 >Streaming Graph to file without a sound (From: Craig Hopson <email@hidden>)
 >Re: Streaming Graph to file without a sound (From: Brian Whitman <email@hidden>)
 >Re: Streaming Graph to file without a sound (From: William Stewart <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.