diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-09-25 15:10:13 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-09-25 15:10:13 -0700 |
commit | 1223218765fa9eb45b5f20189eae22f697b4a4d1 (patch) | |
tree | a6667bc79eaf5badf35d56c38b9a4cb03b8cf56c | |
parent | 6940a854d711922e8c6af7b10a3a5368e4084866 (diff) | |
download | dsub-1223218765fa9eb45b5f20189eae22f697b4a4d1.tar.gz dsub-1223218765fa9eb45b5f20189eae22f697b4a4d1.tar.bz2 dsub-1223218765fa9eb45b5f20189eae22f697b4a4d1.zip |
Try setting audioSessionId before retrying EQ
-rw-r--r-- | src/github/daneren2005/dsub/service/DownloadService.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/service/DownloadService.java b/src/github/daneren2005/dsub/service/DownloadService.java index f8ad8585..c5255b5d 100644 --- a/src/github/daneren2005/dsub/service/DownloadService.java +++ b/src/github/daneren2005/dsub/service/DownloadService.java @@ -1210,11 +1210,15 @@ public class DownloadService extends Service { int pos = getPlayerPosition(); reset(); + // Resetup media player + mediaPlaye.setAudioSessionId(audioSessionId); + EqualizerController controller = null; try { controller = effectsController.getEqualizerController(); } catch(Exception e2) { - // Don't try again, just resetup media player + Log.w(TAG, "Failed to setup EQ even after reinitialization"); + // Don't try again, just resetup media player and continue on } // Restart from same position and state we left off in |