{"action":"created","issue":{"url":"https://api.github.com/repos/ornicar/lila/issues/3884","repository_url":"https://api.github.com/repos/ornicar/lila","labels_url":"https://api.github.com/repos/ornicar/lila/issues/3884/labels{/name}","comments_url":"https://api.github.com/repos/ornicar/lila/issues/3884/comments","events_url":"https://api.github.com/repos/ornicar/lila/issues/3884/events","html_url":"https://github.com/ornicar/lila/issues/3884","id":281821854,"number":3884,"title":"sound sprites","user":{"login":"isaacl","id":1027886,"avatar_url":"https://avatars2.githubusercontent.com/u/1027886?v=4","gravatar_id":"","url":"https://api.github.com/users/isaacl","html_url":"https://github.com/isaacl","followers_url":"https://api.github.com/users/isaacl/followers","following_url":"https://api.github.com/users/isaacl/following{/other_user}","gists_url":"https://api.github.com/users/isaacl/gists{/gist_id}","starred_url":"https://api.github.com/users/isaacl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isaacl/subscriptions","organizations_url":"https://api.github.com/users/isaacl/orgs","repos_url":"https://api.github.com/users/isaacl/repos","events_url":"https://api.github.com/users/isaacl/events{/privacy}","received_events_url":"https://api.github.com/users/isaacl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-12-13T16:55:07Z","updated_at":"2017-12-13T17:40:06Z","closed_at":null,"author_association":"COLLABORATOR","body":"avoid downloading each sound separately, combine into a single howler object and preload when sounds need to be played.\r\n\r\nSee https://github.com/tonistiigi/audiosprite\r\n\r\n```js\r\nvar sound = new Howl({\r\n  src: ['sounds.webm', 'sounds.mp3'],\r\n  sprite: {\r\n    blast: [0, 3000],\r\n    laser: [4000, 1000],\r\n    winner: [6000, 5000]\r\n  }\r\n});\r\n\r\n// Shoot the laser!\r\nsound.play('laser');\r\n```"},"comment":{"url":"https://api.github.com/repos/ornicar/lila/issues/comments/351466347","html_url":"https://github.com/ornicar/lila/issues/3884#issuecomment-351466347","issue_url":"https://api.github.com/repos/ornicar/lila/issues/3884","id":351466347,"user":{"login":"ornicar","id":140370,"avatar_url":"https://avatars0.githubusercontent.com/u/140370?v=4","gravatar_id":"","url":"https://api.github.com/users/ornicar","html_url":"https://github.com/ornicar","followers_url":"https://api.github.com/users/ornicar/followers","following_url":"https://api.github.com/users/ornicar/following{/other_user}","gists_url":"https://api.github.com/users/ornicar/gists{/gist_id}","starred_url":"https://api.github.com/users/ornicar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ornicar/subscriptions","organizations_url":"https://api.github.com/users/ornicar/orgs","repos_url":"https://api.github.com/users/ornicar/repos","events_url":"https://api.github.com/users/ornicar/events{/privacy}","received_events_url":"https://api.github.com/users/ornicar/received_events","type":"User","site_admin":false},"created_at":"2017-12-13T17:40:06Z","updated_at":"2017-12-13T17:40:06Z","author_association":"OWNER","body":"note that we're using a stripped down version of howler. I removed every feature we don't need to cut down on script parse time. It's probable spriting has to be reintroduced."}}
{"actor":{"display_login":"ornicar"}}