redribben

releasing network

Aug 21st, 2014
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. -(void) stopRadio {
  2. self.connectionStopped = YES; //this is where it says that connection was stopped
  3. AudioQueueStop(_audioData->audioQueue, TRUE);
  4. AudioQueueDispose(_audioData->audioQueue, TRUE);
  5. CFReadStreamClose(stream);
  6. CFRelease(stream);
  7. }
Advertisement
Add Comment
Please, Sign In to add comment