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

AudioFileOpenWithCallbacks


  • Subject: AudioFileOpenWithCallbacks
  • From: Simon BrĂ©e <email@hidden>
  • Date: Fri, 2 Dec 2005 19:44:21 +0100

i everyone,

Sorry for asking a newbie's question, but I did not find any documentation or example on the web about the use of AudioFileOpenWithCallbacks.

I only need to write data : should I need to provide a AudioFile_ReadProc, AudioFile_GetSizeProc, AudioFile_SetSizeProc?

What should I pass as argument for void *inRefCon?

Here's an example : I've got an input procedure :

OSStatus InputProc(void *inRefCon,
						AudioUnitRenderActionFlags *ioActionFlags,
						const AudioTimeStamp *inTimeStamp,
						UInt32 inBusNumber,
						UInt32 inNumberFrames,
						AudioBufferList * ioData)
{
    OSStatus err =noErr;

	err= AudioUnitRender(theInputUnit,
						 ioActionFlags,
						 inTimeStamp,
						 inBusNumber,		//will be '1' for input data
						 inNumberFrames,	//# of frames requested
						 theInputBufferList);

    return err;
}

My file type is theType, and my file id is theFileID.

How should look the call to AudioFileOpenWithCallbacks?

Thanks for any help.

Simon
_______________________________________________
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: Re: AudioDriver to User Application
  • Next by Date: About AudioDeviceSetProperty
  • Previous by thread: Re: AudioFileCreate() - Supported Stream Formats
  • Next by thread: About AudioDeviceSetProperty
  • Index(es):
    • Date
    • Thread