static AudioSource() { dRead = SourceRead; dWrite = SourceWrite; dGetSize = SourceGetSize; dSetSize = SourceSetSize; }
extern static int AudioFileOpenWithCallbacks( IntPtr inClientData, ReadProc inReadFunc, WriteProc inWriteFunc, GetSizeProc inGetSizeFunc, SetSizeProc inSetSizeFunc, AudioFileType inFileTypeHint, out IntPtr outAudioFile);
extern static OSStatus AudioFileInitializeWithCallbacks( IntPtr inClientData, ReadProc inReadFunc, WriteProc inWriteFunc, GetSizeProc inGetSizeFunc, SetSizeProc inSetSizeFunc, AudioFileType inFileType, ref AudioStreamBasicDescription format, uint flags, out IntPtr id);