{"action":"opened","issue":{"url":"https://api.github.com/repos/tumtumtum/StreamingKit/issues/206","labels_url":"https://api.github.com/repos/tumtumtum/StreamingKit/issues/206/labels{/name}","comments_url":"https://api.github.com/repos/tumtumtum/StreamingKit/issues/206/comments","events_url":"https://api.github.com/repos/tumtumtum/StreamingKit/issues/206/events","html_url":"https://github.com/tumtumtum/StreamingKit/issues/206","id":81129020,"number":206,"title":"Saving icecast stream to the file do not work","user":{"login":"mike-dutka","id":3025929,"avatar_url":"https://avatars.githubusercontent.com/u/3025929?v=3","gravatar_id":"","url":"https://api.github.com/users/mike-dutka","html_url":"https://github.com/mike-dutka","followers_url":"https://api.github.com/users/mike-dutka/followers","following_url":"https://api.github.com/users/mike-dutka/following{/other_user}","gists_url":"https://api.github.com/users/mike-dutka/gists{/gist_id}","starred_url":"https://api.github.com/users/mike-dutka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mike-dutka/subscriptions","organizations_url":"https://api.github.com/users/mike-dutka/orgs","repos_url":"https://api.github.com/users/mike-dutka/repos","events_url":"https://api.github.com/users/mike-dutka/events{/privacy}","received_events_url":"https://api.github.com/users/mike-dutka/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-26T20:45:14Z","updated_at":"2015-05-26T20:45:14Z","closed_at":null,"body":"I have tried the latest source code for playing icecast stream. When I tried to save stream to the file, it fails. I get error logs like \"STKAudioPlayer:handleRecordingOfAudioPackets failed on AudioFileWritePackets with error \"pck?\" \"\r\n\r\nNSURL* url = [NSURL URLWithString:@\"http://shoutmedia.abc.net.au:10326\"];\r\n    \r\n    STKDataSource* dataSource = [STKAudioPlayer dataSourceFromURL:url];\r\n    NSArray *docDirs = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, true);\r\n    if (docDirs.count) {\r\n        NSString *docDir = docDirs[0];\r\n        NSString *file = [docDir stringByAppendingPathComponent:@\"musicFile.caf\"];\r\n        dataSource.recordToFileUrl = [NSURL fileURLWithPath: file];\r\n...."}}