Skip to content

Instantly share code, notes, and snippets.

@pmatsinopoulos
Created June 18, 2021 20:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pmatsinopoulos/171dc7cfcb244d428a307b2044e7382e to your computer and use it in GitHub Desktop.
Save pmatsinopoulos/171dc7cfcb244d428a307b2044e7382e to your computer and use it in GitHub Desktop.
void GetExtendedFileAudioStreamBasicDescription(ExtAudioFileRef iExtAudioFileRef,
AudioStreamBasicDescription *oAudioStreamBasicDescription) {
UInt32 propertyValueSize = 0;
Boolean writable = false;
CheckError(ExtAudioFileGetPropertyInfo(iExtAudioFileRef,
kExtAudioFileProperty_FileDataFormat,
&propertyValueSize,
&writable),
"Getting the file data format property value size of audio file");
CheckError(ExtAudioFileGetProperty(iExtAudioFileRef,
kExtAudioFileProperty_FileDataFormat,
&propertyValueSize,
(void *)oAudioStreamBasicDescription),
"Getting the value of the property file data format");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment