• 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
render callback - silence
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

render callback - silence


  • Subject: render callback - silence
  • From: Mike Hanna <email@hidden>
  • Date: Sat, 3 Feb 2007 10:59:18 -0800

Hi, I have set up a render callback as such:

OSStatus renderErr = noErr;
AURenderCallbackStruct input;
input.inputProc = MyRendererCallback;
input.inputProcRefCon = NULL;

renderErr = AudioUnitSetProperty (m_outputAU,
kAudioUnitProperty_SetRenderCallback,
kAudioUnitScope_Input,
0,
&input,
sizeof(input));
if (renderErr) { printf ("AudioUnitSetProperty-CB=%ld\n", renderErr); };


callback:

OSStatus	MyRendererCallback(void 				*inRefCon,
		   AudioUnitRenderActionFlags 	*ioActionFlags,
		   const AudioTimeStamp 		*inTimeStamp,
		   UInt32 						inBusNumber,
		   UInt32 						inNumberFrames,
		   AudioBufferList 			*ioData)
{
	printf("MyRendererCallback\n");
	return noErr;
}

it is called, but there is no audio playback. When I remove the callback, I have audio playback and my render notification callback is also called.

What do I need to do in this render callback if I simply want playback? It's hard to find this in the documentation. m_outputAU is at the end of an AUGraph: m_outputAU <> m_timepitchAU <> m_fileAU

Michael
_______________________________________________
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: AU for all (optical) output
  • Next by Date: Re: Re:long FIR filters
  • Previous by thread: AU for all (optical) output
  • Next by thread: file input for filter settings
  • Index(es):
    • Date
    • Thread