{"action":"closed","issue":{"url":"https://api.github.com/repos/h6ah4i/android-openslmediaplayer/issues/14","labels_url":"https://api.github.com/repos/h6ah4i/android-openslmediaplayer/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/h6ah4i/android-openslmediaplayer/issues/14/comments","events_url":"https://api.github.com/repos/h6ah4i/android-openslmediaplayer/issues/14/events","html_url":"https://github.com/h6ah4i/android-openslmediaplayer/issues/14","id":123946014,"number":14,"title":"UnsupportedOperationException: Control lost","user":{"login":"roomtek","id":528961,"avatar_url":"https://avatars.githubusercontent.com/u/528961?v=3","gravatar_id":"","url":"https://api.github.com/users/roomtek","html_url":"https://github.com/roomtek","followers_url":"https://api.github.com/users/roomtek/followers","following_url":"https://api.github.com/users/roomtek/following{/other_user}","gists_url":"https://api.github.com/users/roomtek/gists{/gist_id}","starred_url":"https://api.github.com/users/roomtek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roomtek/subscriptions","organizations_url":"https://api.github.com/users/roomtek/orgs","repos_url":"https://api.github.com/users/roomtek/repos","events_url":"https://api.github.com/users/roomtek/events{/privacy}","received_events_url":"https://api.github.com/users/roomtek/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-12-26T20:08:35Z","updated_at":"2015-12-27T05:35:19Z","closed_at":"2015-12-27T05:35:19Z","body":"List<EQPresetDO> masterlist = new ArrayList<>();\r\n\r\nIEqualizer.Settings eqsettings = equalizer.getProperties();\r\n\r\n            int count = getNumberOfPresets();\r\n\r\n            for (short i = 0; i < count; i++) {\r\n                // loops through presets\r\n                try {\r\n                    EQPresetDO preset = new EQPresetDO();\r\n                    preset.id = i;\r\n                    preset.name = equalizer.getPresetName(i);\r\n                    preset.bands = new short[bandscount];\r\n                    preset.bandstoapply = new short[bandscount];\r\n                    preset.minRANGEmax = minRANGEmax;\r\n\r\n                    equalizer.usePreset(i);\r\n\r\n                    for (short n = 0; n < bandscount; n++) {\r\n                        // loops through preset bands\r\n                        preset.bandstoapply[n] = equalizer.getBandLevel(n);\r\n                        preset.bands[n] = (short) (preset.bandstoapply[n] + maxEQLevel);\r\n                    }\r\n\r\n                    masterlist.add(preset);\r\n                } catch (Exception e) {\r\n                    e.printStackTrace();\r\n                }\r\n            }\r\n\r\nThis exception occurs after the completed MediaPlayer switches to the next MediaPlayer when gaplessplayback is setup, and then the above code runs:\r\n\r\nW/System.err: java.lang.UnsupportedOperationException: Control lost\r\nW/System.err:     at com.h6ah4i.android.media.opensl.OpenSLMediaPlayer.parseResultAndThrowException(OpenSLMediaPlayer.java:1034)\r\nW/System.err:     at com.h6ah4i.android.media.opensl.OpenSLMediaPlayer.parseResultAndThrowExceptForIOExceptions(OpenSLMediaPlayer.java:999)\r\nW/System.err:     at com.h6ah4i.android.media.opensl.OpenSLMediaPlayer.access$100(OpenSLMediaPlayer.java:42)\r\nW/System.err:     at com.h6ah4i.android.media.opensl.OpenSLMediaPlayer$Internal.parseResultAndThrowExceptForIOExceptions(OpenSLMediaPlayer.java:845)\r\nW/System.err:     at com.h6ah4i.android.media.opensl.audiofx.OpenSLAudioEffect.parseResultAndThrowExceptForIOExceptions(OpenSLAudioEffect.java:43)\r\nW/System.err:     at com.h6ah4i.android.media.opensl.audiofx.OpenSLHQEqualizer.usePreset(OpenSLHQEqualizer.java:314) \r\n\r\n\r\n\r\n"}}