{"action":"created","issue":{"url":"https://api.github.com/repos/DV8FromTheWorld/JDA/issues/129","repository_url":"https://api.github.com/repos/DV8FromTheWorld/JDA","labels_url":"https://api.github.com/repos/DV8FromTheWorld/JDA/issues/129/labels{/name}","comments_url":"https://api.github.com/repos/DV8FromTheWorld/JDA/issues/129/comments","events_url":"https://api.github.com/repos/DV8FromTheWorld/JDA/issues/129/events","html_url":"https://github.com/DV8FromTheWorld/JDA/issues/129","id":177591870,"number":129,"title":"Very Distorted Audio When Playing Short Files","user":{"login":"intoxicatedpenguin","id":1341193,"avatar_url":"https://avatars.githubusercontent.com/u/1341193?v=3","gravatar_id":"","url":"https://api.github.com/users/intoxicatedpenguin","html_url":"https://github.com/intoxicatedpenguin","followers_url":"https://api.github.com/users/intoxicatedpenguin/followers","following_url":"https://api.github.com/users/intoxicatedpenguin/following{/other_user}","gists_url":"https://api.github.com/users/intoxicatedpenguin/gists{/gist_id}","starred_url":"https://api.github.com/users/intoxicatedpenguin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/intoxicatedpenguin/subscriptions","organizations_url":"https://api.github.com/users/intoxicatedpenguin/orgs","repos_url":"https://api.github.com/users/intoxicatedpenguin/repos","events_url":"https://api.github.com/users/intoxicatedpenguin/events{/privacy}","received_events_url":"https://api.github.com/users/intoxicatedpenguin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-17T17:11:22Z","updated_at":"2016-09-18T01:52:06Z","closed_at":null,"body":"If I play a short mp3, that seems to be if it's less than 30 seconds, it turns out VERY distorted and sounds awful. I read in another issue that it might be if the audio was mono, so I converted all audio to stereo, but that's not it. I have verified that the mp3 sounds normal if played outside the bot.\r\nHere's the code that pertains to playing:\r\n```\r\n            event.getTextChannel().sendMessage(\"Playing \" + video.title + \" ID is \" + video.id);\r\n\t\t\tFile audioFile  = null;\r\n\t\t\ttry {\r\n\r\n\t\t\t\tSystem.out.println(\"playing!\");\r\n\t\t\t\taudioFile = new File(video.id+\".mp3\");\r\n\t\t\t\tSystem.out.println(audioFile.getName());\r\n\t\t\t\tplayer = new FilePlayer(audioFile);\r\n\t\t\t\tTimerTask playerStop = new PlayerStop(player);\r\n\t\t\t\tevent.getGuild().getAudioManager().setSendingHandler(player);\r\n\t\t\t\tplayer.play();\r\n\t\t\t\tt.schedule(playerStop, (long) video.duration*1000);\r\n\t\t\t\tSystem.out.println(\"Scheduled player to stop in \" + (long) video.duration + \" seconds!\");\r\n\t\t\t} catch (IOException | UnsupportedAudioFileException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n```\r\nIf needed I'll give a comparison of the mp3 being played and the audio that actually is played."},"comment":{"url":"https://api.github.com/repos/DV8FromTheWorld/JDA/issues/comments/247819057","html_url":"https://github.com/DV8FromTheWorld/JDA/issues/129#issuecomment-247819057","issue_url":"https://api.github.com/repos/DV8FromTheWorld/JDA/issues/129","id":247819057,"user":{"login":"DV8FromTheWorld","id":1479909,"avatar_url":"https://avatars.githubusercontent.com/u/1479909?v=3","gravatar_id":"","url":"https://api.github.com/users/DV8FromTheWorld","html_url":"https://github.com/DV8FromTheWorld","followers_url":"https://api.github.com/users/DV8FromTheWorld/followers","following_url":"https://api.github.com/users/DV8FromTheWorld/following{/other_user}","gists_url":"https://api.github.com/users/DV8FromTheWorld/gists{/gist_id}","starred_url":"https://api.github.com/users/DV8FromTheWorld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DV8FromTheWorld/subscriptions","organizations_url":"https://api.github.com/users/DV8FromTheWorld/orgs","repos_url":"https://api.github.com/users/DV8FromTheWorld/repos","events_url":"https://api.github.com/users/DV8FromTheWorld/events{/privacy}","received_events_url":"https://api.github.com/users/DV8FromTheWorld/received_events","type":"User","site_admin":false},"created_at":"2016-09-18T01:52:06Z","updated_at":"2016-09-18T01:52:06Z","body":"Can you please upload an example file for me to test with?\r\n"}}
{"actor":{"display_login":"DV8FromTheWorld"}}