{"action":"created","comment":{"url":"https://api.github.com/repos/KanoComputing/make-art/pulls/comments/58060123","id":58060123,"diff_hunk":"@@ -17,12 +18,17 @@ api = require('../api')(cfg);\n  * @return void\n  */\n exports.play = function (name) {\n+    var soundPath = 'assets/sounds/' + name + '.mp3';\n \n     //Pi is not compatible with HTML5 audio object\n     if (config.OFFLINE) {\n-        api.sound.playSound('assets/sounds/' + name + '.mp3');\n+        api.sound.playSound(soundPath);\n     } else {\n-        play('/assets/sounds/' + name + '.mp3').play();  \n+        var audio = document.createElement('audio');","path":"lib/core/sound.js","position":21,"original_position":21,"commit_id":"11b245ccd474c65ab54f44f2d324587b347d5f38","original_commit_id":"11b245ccd474c65ab54f44f2d324587b347d5f38","user":{"login":"pazdera","id":169328,"avatar_url":"https://avatars.githubusercontent.com/u/169328?v=3","gravatar_id":"","url":"https://api.github.com/users/pazdera","html_url":"https://github.com/pazdera","followers_url":"https://api.github.com/users/pazdera/followers","following_url":"https://api.github.com/users/pazdera/following{/other_user}","gists_url":"https://api.github.com/users/pazdera/gists{/gist_id}","starred_url":"https://api.github.com/users/pazdera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pazdera/subscriptions","organizations_url":"https://api.github.com/users/pazdera/orgs","repos_url":"https://api.github.com/users/pazdera/repos","events_url":"https://api.github.com/users/pazdera/events{/privacy}","received_events_url":"https://api.github.com/users/pazdera/received_events","type":"User","site_admin":false},"body":"Noted, I'll declare the var above then.","created_at":"2016-03-31T14:14:10Z","updated_at":"2016-03-31T14:14:10Z","html_url":"https://github.com/KanoComputing/make-art/pull/324#discussion_r58060123","pull_request_url":"https://api.github.com/repos/KanoComputing/make-art/pulls/324","_links":{"self":{"href":"https://api.github.com/repos/KanoComputing/make-art/pulls/comments/58060123"},"html":{"href":"https://github.com/KanoComputing/make-art/pull/324#discussion_r58060123"},"pull_request":{"href":"https://api.github.com/repos/KanoComputing/make-art/pulls/324"}}},"pull_request":{"url":"https://api.github.com/repos/KanoComputing/make-art/pulls/324","id":64641508,"html_url":"https://github.com/KanoComputing/make-art/pull/324","diff_url":"https://github.com/KanoComputing/make-art/pull/324.diff","patch_url":"https://github.com/KanoComputing/make-art/pull/324.patch","issue_url":"https://api.github.com/repos/KanoComputing/make-art/issues/324","number":324,"state":"open","locked":false,"title":"Fixing build","user":{"login":"pazdera","id":169328,"avatar_url":"https://avatars.githubusercontent.com/u/169328?v=3","gravatar_id":"","url":"https://api.github.com/users/pazdera","html_url":"https://github.com/pazdera","followers_url":"https://api.github.com/users/pazdera/followers","following_url":"https://api.github.com/users/pazdera/following{/other_user}","gists_url":"https://api.github.com/users/pazdera/gists{/gist_id}","starred_url":"https://api.github.com/users/pazdera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pazdera/subscriptions","organizations_url":"https://api.github.com/users/pazdera/orgs","repos_url":"https://api.github.com/users/pazdera/repos","events_url":"https://api.github.com/users/pazdera/events{/privacy}","received_events_url":"https://api.github.com/users/pazdera/received_events","type":"User","site_admin":false},"body":"The play-audio package no longer exists. Use HTML5 API directly instead.","created_at":"2016-03-30T14:56:31Z","updated_at":"2016-03-31T14:14:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5f326f9cf6553f7ff6e011720ecb09638ae7df5c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/KanoComputing/make-art/pulls/324/commits","review_comments_url":"https://api.github.com/repos/KanoComputing/make-art/pulls/324/comments","review_comment_url":"https://api.github.com/repos/KanoComputing/make-art/pulls/comments{/number}","comments_url":"https://api.github.com/repos/KanoComputing/make-art/issues/324/comments","statuses_url":"https://api.github.com/repos/KanoComputing/make-art/statuses/11b245ccd474c65ab54f44f2d324587b347d5f38","head":{"label":"KanoComputing:npm-gate","ref":"npm-gate","sha":"11b245ccd474c65ab54f44f2d324587b347d5f38","user":{"login":"KanoComputing","id":3909402,"avatar_url":"https://avatars.githubusercontent.com/u/3909402?v=3","gravatar_id":"","url":"https://api.github.com/users/KanoComputing","html_url":"https://github.com/KanoComputing","followers_url":"https://api.github.com/users/KanoComputing/followers","following_url":"https://api.github.com/users/KanoComputing/following{/other_user}","gists_url":"https://api.github.com/users/KanoComputing/gists{/gist_id}","starred_url":"https://api.github.com/users/KanoComputing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KanoComputing/subscriptions","organizations_url":"https://api.github.com/users/KanoComputing/orgs","repos_url":"https://api.github.com/users/KanoComputing/repos","events_url":"https://api.github.com/users/KanoComputing/events{/privacy}","received_events_url":"https://api.github.com/users/KanoComputing/received_events","type":"Organization","site_admin":false},"repo":{"id":18807835,"name":"make-art","full_name":"KanoComputing/make-art","owner":{"login":"KanoComputing","id":3909402,"avatar_url":"https://avatars.githubusercontent.com/u/3909402?v=3","gravatar_id":"","url":"https://api.github.com/users/KanoComputing","html_url":"https://github.com/KanoComputing","followers_url":"https://api.github.com/users/KanoComputing/followers","following_url":"https://api.github.com/users/KanoComputing/following{/other_user}","gists_url":"https://api.github.com/users/KanoComputing/gists{/gist_id}","starred_url":"https://api.github.com/users/KanoComputing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KanoComputing/subscriptions","organizations_url":"https://api.github.com/users/KanoComputing/orgs","repos_url":"https://api.github.com/users/KanoComputing/repos","events_url":"https://api.github.com/users/KanoComputing/events{/privacy}","received_events_url":"https://api.github.com/users/KanoComputing/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/KanoComputing/make-art","description":"App to learn programming using a basic CoffeeScript drawing API","fork":false,"url":"https://api.github.com/repos/KanoComputing/make-art","forks_url":"https://api.github.com/repos/KanoComputing/make-art/forks","keys_url":"https://api.github.com/repos/KanoComputing/make-art/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KanoComputing/make-art/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KanoComputing/make-art/teams","hooks_url":"https://api.github.com/repos/KanoComputing/make-art/hooks","issue_events_url":"https://api.github.com/repos/KanoComputing/make-art/issues/events{/number}","events_url":"https://api.github.com/repos/KanoComputing/make-art/events","assignees_url":"https://api.github.com/repos/KanoComputing/make-art/assignees{/user}","branches_url":"https://api.github.com/repos/KanoComputing/make-art/branches{/branch}","tags_url":"https://api.github.com/repos/KanoComputing/make-art/tags","blobs_url":"https://api.github.com/repos/KanoComputing/make-art/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KanoComputing/make-art/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KanoComputing/make-art/git/refs{/sha}","trees_url":"https://api.github.com/repos/KanoComputing/make-art/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KanoComputing/make-art/statuses/{sha}","languages_url":"https://api.github.com/repos/KanoComputing/make-art/languages","stargazers_url":"https://api.github.com/repos/KanoComputing/make-art/stargazers","contributors_url":"https://api.github.com/repos/KanoComputing/make-art/contributors","subscribers_url":"https://api.github.com/repos/KanoComputing/make-art/subscribers","subscription_url":"https://api.github.com/repos/KanoComputing/make-art/subscription","commits_url":"https://api.github.com/repos/KanoComputing/make-art/commits{/sha}","git_commits_url":"https://api.github.com/repos/KanoComputing/make-art/git/commits{/sha}","comments_url":"https://api.github.com/repos/KanoComputing/make-art/comments{/number}","issue_comment_url":"https://api.github.com/repos/KanoComputing/make-art/issues/comments{/number}","contents_url":"https://api.github.com/repos/KanoComputing/make-art/contents/{+path}","compare_url":"https://api.github.com/repos/KanoComputing/make-art/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KanoComputing/make-art/merges","archive_url":"https://api.github.com/repos/KanoComputing/make-art/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KanoComputing/make-art/downloads","issues_url":"https://api.github.com/repos/KanoComputing/make-art/issues{/number}","pulls_url":"https://api.github.com/repos/KanoComputing/make-art/pulls{/number}","milestones_url":"https://api.github.com/repos/KanoComputing/make-art/milestones{/number}","notifications_url":"https://api.github.com/repos/KanoComputing/make-art/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KanoComputing/make-art/labels{/name}","releases_url":"https://api.github.com/repos/KanoComputing/make-art/releases{/id}","deployments_url":"https://api.github.com/repos/KanoComputing/make-art/deployments","created_at":"2014-04-15T16:48:49Z","updated_at":"2016-02-04T21:22:18Z","pushed_at":"2016-03-30T14:56:32Z","git_url":"git://github.com/KanoComputing/make-art.git","ssh_url":"git@github.com:KanoComputing/make-art.git","clone_url":"https://github.com/KanoComputing/make-art.git","svn_url":"https://github.com/KanoComputing/make-art","homepage":null,"size":55232,"stargazers_count":16,"watchers_count":16,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":19,"mirror_url":null,"open_issues_count":19,"forks":19,"open_issues":19,"watchers":16,"default_branch":"master"}},"base":{"label":"KanoComputing:master","ref":"master","sha":"b78c2f9062db846f42049e8c275d71ac00ebaa50","user":{"login":"KanoComputing","id":3909402,"avatar_url":"https://avatars.githubusercontent.com/u/3909402?v=3","gravatar_id":"","url":"https://api.github.com/users/KanoComputing","html_url":"https://github.com/KanoComputing","followers_url":"https://api.github.com/users/KanoComputing/followers","following_url":"https://api.github.com/users/KanoComputing/following{/other_user}","gists_url":"https://api.github.com/users/KanoComputing/gists{/gist_id}","starred_url":"https://api.github.com/users/KanoComputing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KanoComputing/subscriptions","organizations_url":"https://api.github.com/users/KanoComputing/orgs","repos_url":"https://api.github.com/users/KanoComputing/repos","events_url":"https://api.github.com/users/KanoComputing/events{/privacy}","received_events_url":"https://api.github.com/users/KanoComputing/received_events","type":"Organization","site_admin":false},"repo":{"id":18807835,"name":"make-art","full_name":"KanoComputing/make-art","owner":{"login":"KanoComputing","id":3909402,"avatar_url":"https://avatars.githubusercontent.com/u/3909402?v=3","gravatar_id":"","url":"https://api.github.com/users/KanoComputing","html_url":"https://github.com/KanoComputing","followers_url":"https://api.github.com/users/KanoComputing/followers","following_url":"https://api.github.com/users/KanoComputing/following{/other_user}","gists_url":"https://api.github.com/users/KanoComputing/gists{/gist_id}","starred_url":"https://api.github.com/users/KanoComputing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KanoComputing/subscriptions","organizations_url":"https://api.github.com/users/KanoComputing/orgs","repos_url":"https://api.github.com/users/KanoComputing/repos","events_url":"https://api.github.com/users/KanoComputing/events{/privacy}","received_events_url":"https://api.github.com/users/KanoComputing/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/KanoComputing/make-art","description":"App to learn programming using a basic CoffeeScript drawing API","fork":false,"url":"https://api.github.com/repos/KanoComputing/make-art","forks_url":"https://api.github.com/repos/KanoComputing/make-art/forks","keys_url":"https://api.github.com/repos/KanoComputing/make-art/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KanoComputing/make-art/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KanoComputing/make-art/teams","hooks_url":"https://api.github.com/repos/KanoComputing/make-art/hooks","issue_events_url":"https://api.github.com/repos/KanoComputing/make-art/issues/events{/number}","events_url":"https://api.github.com/repos/KanoComputing/make-art/events","assignees_url":"https://api.github.com/repos/KanoComputing/make-art/assignees{/user}","branches_url":"https://api.github.com/repos/KanoComputing/make-art/branches{/branch}","tags_url":"https://api.github.com/repos/KanoComputing/make-art/tags","blobs_url":"https://api.github.com/repos/KanoComputing/make-art/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KanoComputing/make-art/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KanoComputing/make-art/git/refs{/sha}","trees_url":"https://api.github.com/repos/KanoComputing/make-art/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KanoComputing/make-art/statuses/{sha}","languages_url":"https://api.github.com/repos/KanoComputing/make-art/languages","stargazers_url":"https://api.github.com/repos/KanoComputing/make-art/stargazers","contributors_url":"https://api.github.com/repos/KanoComputing/make-art/contributors","subscribers_url":"https://api.github.com/repos/KanoComputing/make-art/subscribers","subscription_url":"https://api.github.com/repos/KanoComputing/make-art/subscription","commits_url":"https://api.github.com/repos/KanoComputing/make-art/commits{/sha}","git_commits_url":"https://api.github.com/repos/KanoComputing/make-art/git/commits{/sha}","comments_url":"https://api.github.com/repos/KanoComputing/make-art/comments{/number}","issue_comment_url":"https://api.github.com/repos/KanoComputing/make-art/issues/comments{/number}","contents_url":"https://api.github.com/repos/KanoComputing/make-art/contents/{+path}","compare_url":"https://api.github.com/repos/KanoComputing/make-art/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KanoComputing/make-art/merges","archive_url":"https://api.github.com/repos/KanoComputing/make-art/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KanoComputing/make-art/downloads","issues_url":"https://api.github.com/repos/KanoComputing/make-art/issues{/number}","pulls_url":"https://api.github.com/repos/KanoComputing/make-art/pulls{/number}","milestones_url":"https://api.github.com/repos/KanoComputing/make-art/milestones{/number}","notifications_url":"https://api.github.com/repos/KanoComputing/make-art/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KanoComputing/make-art/labels{/name}","releases_url":"https://api.github.com/repos/KanoComputing/make-art/releases{/id}","deployments_url":"https://api.github.com/repos/KanoComputing/make-art/deployments","created_at":"2014-04-15T16:48:49Z","updated_at":"2016-02-04T21:22:18Z","pushed_at":"2016-03-30T14:56:32Z","git_url":"git://github.com/KanoComputing/make-art.git","ssh_url":"git@github.com:KanoComputing/make-art.git","clone_url":"https://github.com/KanoComputing/make-art.git","svn_url":"https://github.com/KanoComputing/make-art","homepage":null,"size":55232,"stargazers_count":16,"watchers_count":16,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":19,"mirror_url":null,"open_issues_count":19,"forks":19,"open_issues":19,"watchers":16,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/KanoComputing/make-art/pulls/324"},"html":{"href":"https://github.com/KanoComputing/make-art/pull/324"},"issue":{"href":"https://api.github.com/repos/KanoComputing/make-art/issues/324"},"comments":{"href":"https://api.github.com/repos/KanoComputing/make-art/issues/324/comments"},"review_comments":{"href":"https://api.github.com/repos/KanoComputing/make-art/pulls/324/comments"},"review_comment":{"href":"https://api.github.com/repos/KanoComputing/make-art/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/KanoComputing/make-art/pulls/324/commits"},"statuses":{"href":"https://api.github.com/repos/KanoComputing/make-art/statuses/11b245ccd474c65ab54f44f2d324587b347d5f38"}}}}