Created
June 18, 2021 20:12
-
-
Save pmatsinopoulos/171dc7cfcb244d428a307b2044e7382e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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