{"action":"created","issue":{"url":"https://api.github.com/repos/PromyLOPh/pianobar/issues/536","labels_url":"https://api.github.com/repos/PromyLOPh/pianobar/issues/536/labels{/name}","comments_url":"https://api.github.com/repos/PromyLOPh/pianobar/issues/536/comments","events_url":"https://api.github.com/repos/PromyLOPh/pianobar/issues/536/events","html_url":"https://github.com/PromyLOPh/pianobar/issues/536","id":102560933,"number":536,"title":"Audio Output Switching","user":{"login":"jrleeman","id":325269,"avatar_url":"https://avatars.githubusercontent.com/u/325269?v=3","gravatar_id":"","url":"https://api.github.com/users/jrleeman","html_url":"https://github.com/jrleeman","followers_url":"https://api.github.com/users/jrleeman/followers","following_url":"https://api.github.com/users/jrleeman/following{/other_user}","gists_url":"https://api.github.com/users/jrleeman/gists{/gist_id}","starred_url":"https://api.github.com/users/jrleeman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrleeman/subscriptions","organizations_url":"https://api.github.com/users/jrleeman/orgs","repos_url":"https://api.github.com/users/jrleeman/repos","events_url":"https://api.github.com/users/jrleeman/events{/privacy}","received_events_url":"https://api.github.com/users/jrleeman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-22T19:20:16Z","updated_at":"2015-08-24T14:17:50Z","closed_at":null,"body":"When switching audio outputs from system preferences in OS X 10.10.5 the audio disappears. Piano bar must be restarted to get it back after every output switch. "},"comment":{"url":"https://api.github.com/repos/PromyLOPh/pianobar/issues/comments/134221273","html_url":"https://github.com/PromyLOPh/pianobar/issues/536#issuecomment-134221273","issue_url":"https://api.github.com/repos/PromyLOPh/pianobar/issues/536","id":134221273,"user":{"login":"PromyLOPh","id":13182,"avatar_url":"https://avatars.githubusercontent.com/u/13182?v=3","gravatar_id":"","url":"https://api.github.com/users/PromyLOPh","html_url":"https://github.com/PromyLOPh","followers_url":"https://api.github.com/users/PromyLOPh/followers","following_url":"https://api.github.com/users/PromyLOPh/following{/other_user}","gists_url":"https://api.github.com/users/PromyLOPh/gists{/gist_id}","starred_url":"https://api.github.com/users/PromyLOPh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PromyLOPh/subscriptions","organizations_url":"https://api.github.com/users/PromyLOPh/orgs","repos_url":"https://api.github.com/users/PromyLOPh/repos","events_url":"https://api.github.com/users/PromyLOPh/events{/privacy}","received_events_url":"https://api.github.com/users/PromyLOPh/received_events","type":"User","site_admin":false},"created_at":"2015-08-24T14:17:50Z","updated_at":"2015-08-24T14:17:50Z","body":"> No problem.\nHm, the “debug” output is a little less verbose than I though.\n\n> Just did it and found that if the song plays to completion, it will\n> switch, but switching mid song either changes nothing or the audio\n> totally dies. Looks like switching stations will make the audio switch\n> properly too.\nThat makes sense. We’re closing and reopening the audio device every\ntime a new song is played. So I assume the problem is that ao_play’s\nreturn value is unchecked. Does this patch\n(https://gist.github.com/b58e5abca81e96a3fa57) fix the issue?\n\n"}}