{"action":"created","issue":{"url":"https://api.github.com/repos/dbkynd/controlcast/issues/5","repository_url":"https://api.github.com/repos/dbkynd/controlcast","labels_url":"https://api.github.com/repos/dbkynd/controlcast/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/dbkynd/controlcast/issues/5/comments","events_url":"https://api.github.com/repos/dbkynd/controlcast/issues/5/events","html_url":"https://github.com/dbkynd/controlcast/issues/5","id":149932525,"number":5,"title":"Audio Type seems to have no effect","user":{"login":"Const4ntFlux","id":18585319,"avatar_url":"https://avatars.githubusercontent.com/u/18585319?v=3","gravatar_id":"","url":"https://api.github.com/users/Const4ntFlux","html_url":"https://github.com/Const4ntFlux","followers_url":"https://api.github.com/users/Const4ntFlux/followers","following_url":"https://api.github.com/users/Const4ntFlux/following{/other_user}","gists_url":"https://api.github.com/users/Const4ntFlux/gists{/gist_id}","starred_url":"https://api.github.com/users/Const4ntFlux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Const4ntFlux/subscriptions","organizations_url":"https://api.github.com/users/Const4ntFlux/orgs","repos_url":"https://api.github.com/users/Const4ntFlux/repos","events_url":"https://api.github.com/users/Const4ntFlux/events{/privacy}","received_events_url":"https://api.github.com/users/Const4ntFlux/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-21T01:33:36Z","updated_at":"2016-04-21T04:02:37Z","closed_at":null,"body":"Allocating a local audio file to a button and activating it layers the sound multiple times (as many times as you push the button) instead of taking into account the chosen audio type.\r\nExpected behavior for me was:\r\n\r\nNormal: button push would trigger the audio file playback. Subsequent presses would layer a new instance of the audio file on top. All triggered audio layers would play until the end of the file.\r\nToggle: first button push activates the sound. Second press would deactivate the sound.\r\nRestart: first push activates the sound. Any subsequent presses would restart the audio file from the beginning until the audio file finished playing.\r\nHold: button push and hold would play the audio file. Upon release of the button the audio file would stop.\r\n"},"comment":{"url":"https://api.github.com/repos/dbkynd/controlcast/issues/comments/212728573","html_url":"https://github.com/dbkynd/controlcast/issues/5#issuecomment-212728573","issue_url":"https://api.github.com/repos/dbkynd/controlcast/issues/5","id":212728573,"user":{"login":"dbkynd","id":10998787,"avatar_url":"https://avatars.githubusercontent.com/u/10998787?v=3","gravatar_id":"","url":"https://api.github.com/users/dbkynd","html_url":"https://github.com/dbkynd","followers_url":"https://api.github.com/users/dbkynd/followers","following_url":"https://api.github.com/users/dbkynd/following{/other_user}","gists_url":"https://api.github.com/users/dbkynd/gists{/gist_id}","starred_url":"https://api.github.com/users/dbkynd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbkynd/subscriptions","organizations_url":"https://api.github.com/users/dbkynd/orgs","repos_url":"https://api.github.com/users/dbkynd/repos","events_url":"https://api.github.com/users/dbkynd/events{/privacy}","received_events_url":"https://api.github.com/users/dbkynd/received_events","type":"User","site_admin":false},"created_at":"2016-04-21T04:02:37Z","updated_at":"2016-04-21T04:02:37Z","body":"The expected behavior you list is correct except for type Normal.\r\nWhen you spam the button with type Normal selected it will only play on the first press. Subsequent key presses won't do anything until the current track stops. (per key)\r\n\r\nTesting locally it all seems to function properly. Can you open the Chrome Dev Tools ``CTRL+SHIFT+I`` and see if there is any error in the console when playing audio?"}}