{"action":"created","issue":{"url":"https://api.github.com/repos/felixpalmer/android-visualizer/issues/5","labels_url":"https://api.github.com/repos/felixpalmer/android-visualizer/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/felixpalmer/android-visualizer/issues/5/comments","events_url":"https://api.github.com/repos/felixpalmer/android-visualizer/issues/5/events","html_url":"https://github.com/felixpalmer/android-visualizer/issues/5","id":19194459,"number":5,"title":"Visualization does not work on the new Galaxy devices","user":{"login":"mobilevisuals","id":3171112,"avatar_url":"https://avatars.githubusercontent.com/u/3171112?v=3","gravatar_id":"","url":"https://api.github.com/users/mobilevisuals","html_url":"https://github.com/mobilevisuals","followers_url":"https://api.github.com/users/mobilevisuals/followers","following_url":"https://api.github.com/users/mobilevisuals/following{/other_user}","gists_url":"https://api.github.com/users/mobilevisuals/gists{/gist_id}","starred_url":"https://api.github.com/users/mobilevisuals/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mobilevisuals/subscriptions","organizations_url":"https://api.github.com/users/mobilevisuals/orgs","repos_url":"https://api.github.com/users/mobilevisuals/repos","events_url":"https://api.github.com/users/mobilevisuals/events{/privacy}","received_events_url":"https://api.github.com/users/mobilevisuals/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":63,"created_at":"2013-09-09T13:16:29Z","updated_at":"2015-12-02T22:04:32Z","closed_at":null,"body":"A visualizer can have an internal music player, which means that the app has its own built in player. It can also use the music from external music players( Winamp for instance). Visualization for external players does not work on the new Galaxy devices. \r\n\r\nI have played music with external players, while debugging the visualizer apps. The bytes in the updateVisualizerFFT method are always 0 for external players, when a visualizer is created with 0 as an argument.\r\n\r\nThis results in no visualization, since there is no signal to use for visualization.\r\nIt still works for internal players. The bytes in the updateVisualizerFFT are not 0 then, so the app has something to use for visualization, even when the visualizer is created with 0 as an argument.\r\n\r\nThis is caused by an Android code bug in the Digital Signal Processors, which are included in the new Galaxy and some HTC devices.\r\n\r\nSeveral visualizer apps have this warning message:\r\n\r\n\"NOTE: To Galaxy S/S2/S3/S4, Galaxy Note 1/2, Galaxy Nexus and HTC Rezound owners: The visualizer will sporadically show a flatline with many music players, due to an Android bug related to the built-in DSP in these phones. This is a problem for all music visualizer apps on these phones, as evidenced by user reviews of other apps. Still looking for a work-around, but we'll probably have to wait for a future version of Android to fix it. If you have this problem, I apologize! Please email me and I will refund you.\" \r\n\r\nAlmost all visualizer apps on the market have this problem and can’t visualize from external players on the new Galaxy and some HTC devices.\r\n\r\nIt seems like it is possible to solve this problem, because external visualization works on the Morphyre Music Visualizer. It is right now the only visualizer on the market, where this works.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/felixpalmer/android-visualizer/issues/comments/161448144","html_url":"https://github.com/felixpalmer/android-visualizer/issues/5#issuecomment-161448144","issue_url":"https://api.github.com/repos/felixpalmer/android-visualizer/issues/5","id":161448144,"user":{"login":"dcerisano","id":1641613,"avatar_url":"https://avatars.githubusercontent.com/u/1641613?v=3","gravatar_id":"","url":"https://api.github.com/users/dcerisano","html_url":"https://github.com/dcerisano","followers_url":"https://api.github.com/users/dcerisano/followers","following_url":"https://api.github.com/users/dcerisano/following{/other_user}","gists_url":"https://api.github.com/users/dcerisano/gists{/gist_id}","starred_url":"https://api.github.com/users/dcerisano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcerisano/subscriptions","organizations_url":"https://api.github.com/users/dcerisano/orgs","repos_url":"https://api.github.com/users/dcerisano/repos","events_url":"https://api.github.com/users/dcerisano/events{/privacy}","received_events_url":"https://api.github.com/users/dcerisano/received_events","type":"User","site_admin":false},"created_at":"2015-12-02T22:04:32Z","updated_at":"2015-12-02T22:04:32Z","body":"Session 0 is (was) an aggregate of all audio streams, and represented a security issue.\r\nI think this is briefly mentioned in the docs. Visualizer should be passed non-aggregate sessions. "}}