Created
July 19, 2019 01:35
-
-
Save SunXiaoShan/917452b58f06920570e21b20d6e45c41 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
// Step 1: Register callback | |
// Callback function will fill buffer. Then add to buffer queue. | |
status = AudioQueueNewOutput( | |
&dataFormat, | |
BufferCallback, | |
(__bridge void * _Nullable)(self), | |
CFRunLoopGetCurrent(), // nil | |
kCFRunLoopCommonModes, // nil | |
0, | |
&_queue | |
); | |
if (status != noErr) NSLog(@"AudioQueueNewOutput bitrate failed %d", status); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment