{"action":"created","issue":{"url":"https://api.github.com/repos/JorenSix/TarsosDSP/issues/90","repository_url":"https://api.github.com/repos/JorenSix/TarsosDSP","labels_url":"https://api.github.com/repos/JorenSix/TarsosDSP/issues/90/labels{/name}","comments_url":"https://api.github.com/repos/JorenSix/TarsosDSP/issues/90/comments","events_url":"https://api.github.com/repos/JorenSix/TarsosDSP/issues/90/events","html_url":"https://github.com/JorenSix/TarsosDSP/issues/90","id":164497233,"number":90,"title":"AudioPlayer, when reading file  : loosing audio data and can't read properly?","user":{"login":"chris282","id":20319316,"avatar_url":"https://avatars.githubusercontent.com/u/20319316?v=3","gravatar_id":"","url":"https://api.github.com/users/chris282","html_url":"https://github.com/chris282","followers_url":"https://api.github.com/users/chris282/followers","following_url":"https://api.github.com/users/chris282/following{/other_user}","gists_url":"https://api.github.com/users/chris282/gists{/gist_id}","starred_url":"https://api.github.com/users/chris282/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chris282/subscriptions","organizations_url":"https://api.github.com/users/chris282/orgs","repos_url":"https://api.github.com/users/chris282/repos","events_url":"https://api.github.com/users/chris282/events{/privacy}","received_events_url":"https://api.github.com/users/chris282/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-08T09:54:37Z","updated_at":"2016-08-29T15:48:40Z","closed_at":null,"body":"Hello\r\nafter many trials, I was not able to get the AudioPlayer working normally. The sound is jerky , clipped , it is like the audio processor dont read the whole audio file but jump to a next step.\r\n\r\nI tried this without any transformation on the audio stream : just one AudioProcessor is added. See the example : \r\n\r\n```\r\nFile audioFile = new File(fileName);\r\n                AudioFormat format=null;\r\n               \r\n\t\t\ttry {\r\n\t\t\t\t\r\n\t\t\t\t\r\n                            dispatcher = AudioDispatcherFactory.fromFile(audioFile, 4096*100, 0);\r\n                              format = AudioSystem.getAudioFileFormat(audioFile).getFormat();\r\n\t\t\t} catch (IOException 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\t\tnew Thread(dispatcher,\"Audio dispatching\").start();\r\n```\r\nI put here a enormous value of 4096*100 to show the problem. The problem is the same with values of :\r\n 2048 , 0\r\n1024 , 0 \r\n2048 , 1024\r\netc\r\nThe is still a loss of audio : we can't hear the original music\r\n\r\nIs this normal and due to the dsp implementation?\r\n\r\n\r\nThe classes in the \"examples\" folder does not help, like Spectrogram.java that is not working using a AudioPlayer that play no sound at all, certainly due to bufferSize and overlap values.\r\n\r\nI have this need because i want exactly what the Spectrogram.java is supposed to do : get a frequency visual with the sound played at the same time, with smoothness\r\n\r\n\r\n          "},"comment":{"url":"https://api.github.com/repos/JorenSix/TarsosDSP/issues/comments/243164769","html_url":"https://github.com/JorenSix/TarsosDSP/issues/90#issuecomment-243164769","issue_url":"https://api.github.com/repos/JorenSix/TarsosDSP/issues/90","id":243164769,"user":{"login":"mustafin","id":5144807,"avatar_url":"https://avatars.githubusercontent.com/u/5144807?v=3","gravatar_id":"","url":"https://api.github.com/users/mustafin","html_url":"https://github.com/mustafin","followers_url":"https://api.github.com/users/mustafin/followers","following_url":"https://api.github.com/users/mustafin/following{/other_user}","gists_url":"https://api.github.com/users/mustafin/gists{/gist_id}","starred_url":"https://api.github.com/users/mustafin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mustafin/subscriptions","organizations_url":"https://api.github.com/users/mustafin/orgs","repos_url":"https://api.github.com/users/mustafin/repos","events_url":"https://api.github.com/users/mustafin/events{/privacy}","received_events_url":"https://api.github.com/users/mustafin/received_events","type":"User","site_admin":false},"created_at":"2016-08-29T15:48:40Z","updated_at":"2016-08-29T15:48:40Z","body":"Same here, jerky sound like every period of some time some bytes are missing."}}
{"actor":{"display_login":"mustafin"}}