{"action":"opened","issue":{"url":"https://api.github.com/repos/saltares/libgdx-cookbook/issues/15","labels_url":"https://api.github.com/repos/saltares/libgdx-cookbook/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/saltares/libgdx-cookbook/issues/15/comments","events_url":"https://api.github.com/repos/saltares/libgdx-cookbook/issues/15/events","html_url":"https://github.com/saltares/libgdx-cookbook/issues/15","id":124105614,"number":15,"title":"SoundEffectSample","user":{"login":"deimos411","id":963679,"avatar_url":"https://avatars.githubusercontent.com/u/963679?v=3","gravatar_id":"","url":"https://api.github.com/users/deimos411","html_url":"https://github.com/deimos411","followers_url":"https://api.github.com/users/deimos411/followers","following_url":"https://api.github.com/users/deimos411/following{/other_user}","gists_url":"https://api.github.com/users/deimos411/gists{/gist_id}","starred_url":"https://api.github.com/users/deimos411/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deimos411/subscriptions","organizations_url":"https://api.github.com/users/deimos411/orgs","repos_url":"https://api.github.com/users/deimos411/repos","events_url":"https://api.github.com/users/deimos411/events{/privacy}","received_events_url":"https://api.github.com/users/deimos411/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-28T18:39:15Z","updated_at":"2015-12-28T18:39:15Z","closed_at":null,"body":"Hello,\r\n\r\nThere is a little bug in this file SoundEffectSample, on touchDown() function.\r\n\r\nthis :\r\nSound sound = sounds.get(MathUtils.random(sounds.size - 1));\r\n\r\nreturn null, as Keys.NUM_1 used on create() method  add a sound starting from 8 ( Keys.NUM_1 ) to 14 ( Keys.NUM_7).\r\n\r\nMaybe this line will correct it : \r\n\r\nSound sound = sounds.get(MathUtils.random(sounds.size - 1) + Keys.NUM_1);\r\n\r\nSincerfully,\r\n"}}