Last active
February 16, 2020 15:55
-
-
Save limejelly/cbdeb798462151ce1ad06575e0f882b3 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
- (AudioStreamBasicDescription)getAudioDescription { | |
AudioStreamBasicDescription audioDescription = {0}; | |
audioDescription.mSampleRate = 48000.00; | |
audioDescription.mFormatID = kAudioFormatLinearPCM; | |
audioDescription.mFormatFlags = kAudioFormatFlagIsBigEndian; | |
audioDescription.mFramesPerPacket = 1; | |
audioDescription.mChannelsPerFrame = 2; | |
audioDescription.mBitsPerChannel = 8; | |
audioDescription.mBytesPerPacket = 2; | |
audioDescription.mBytesPerFrame = 2; | |
return audioDescription; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment