{"action":"opened","issue":{"url":"https://api.github.com/repos/openframeworks/openFrameworks/issues/4441","labels_url":"https://api.github.com/repos/openframeworks/openFrameworks/issues/4441/labels{/name}","comments_url":"https://api.github.com/repos/openframeworks/openFrameworks/issues/4441/comments","events_url":"https://api.github.com/repos/openframeworks/openFrameworks/issues/4441/events","html_url":"https://github.com/openframeworks/openFrameworks/issues/4441","id":111599289,"number":4441,"title":"iOS AVSoundPlayer prevented from playing/killed by AVAssetReader","user":{"login":"danoli3","id":830748,"avatar_url":"https://avatars.githubusercontent.com/u/830748?v=3","gravatar_id":"","url":"https://api.github.com/users/danoli3","html_url":"https://github.com/danoli3","followers_url":"https://api.github.com/users/danoli3/followers","following_url":"https://api.github.com/users/danoli3/following{/other_user}","gists_url":"https://api.github.com/users/danoli3/gists{/gist_id}","starred_url":"https://api.github.com/users/danoli3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danoli3/subscriptions","organizations_url":"https://api.github.com/users/danoli3/orgs","repos_url":"https://api.github.com/users/danoli3/repos","events_url":"https://api.github.com/users/danoli3/events{/privacy}","received_events_url":"https://api.github.com/users/danoli3/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/openframeworks/openFrameworks/labels/iOS","name":"iOS","color":"2babad"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-15T11:38:04Z","updated_at":"2015-10-15T11:38:04Z","closed_at":null,"body":"I was testing the examples for any issues for iOS and noticed this one.\r\n\r\nThe AVSoundPlayer class (AVAudioSession) is very sensitive to if the AVAssetReader is loading something (say AVFoundationVideoPlayer or something else on the system). \r\nIt basically kills the sound player.\r\n\r\nI found some documentation online of the same issue:\r\nhttp://thebesthacker.com/question/avassetreader-kills-playback-in-avaudioplayer.html\r\n\r\nWith a easy mixer solution (iOS 3+)\r\nTested and it is a good fix. \r\nSimilar code was in the older iOS Sound Stream class (likely for the same reason).\r\n\r\nKeen for 0.9 to be honest.\r\n\r\n"}}