aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-09-25 19:01:03 -0700
committerScott Jackson <daneren2005@gmail.com>2014-09-25 19:01:03 -0700
commite9bf311c74ce189fe22ca43b93743ef3986b76d2 (patch)
tree85f4dcde436bda96c85810f3d55e0e6c4e0d8bf8
parent1223218765fa9eb45b5f20189eae22f697b4a4d1 (diff)
downloaddsub-e9bf311c74ce189fe22ca43b93743ef3986b76d2.tar.gz
dsub-e9bf311c74ce189fe22ca43b93743ef3986b76d2.tar.bz2
dsub-e9bf311c74ce189fe22ca43b93743ef3986b76d2.zip
Throw exception higher so DownloadService can recreate
-rw-r--r--src/github/daneren2005/dsub/audiofx/EqualizerController.java8
-rw-r--r--src/github/daneren2005/dsub/service/DownloadService.java2
2 files changed, 3 insertions, 7 deletions
diff --git a/src/github/daneren2005/dsub/audiofx/EqualizerController.java b/src/github/daneren2005/dsub/audiofx/EqualizerController.java
index 4f0624d7..18a4e3e4 100644
--- a/src/github/daneren2005/dsub/audiofx/EqualizerController.java
+++ b/src/github/daneren2005/dsub/audiofx/EqualizerController.java
@@ -47,12 +47,8 @@ public class EqualizerController {
public EqualizerController(Context context, int audioSessionId) {
this.context = context;
- try {
- this.audioSessionId = audioSessionId;
- init();
- } catch (Throwable x) {
- Log.w(TAG, "Failed to create equalizer.", x);
- }
+ this.audioSessionId = audioSessionId;
+ init();
}
private void init() {
diff --git a/src/github/daneren2005/dsub/service/DownloadService.java b/src/github/daneren2005/dsub/service/DownloadService.java
index c5255b5d..ae706c79 100644
--- a/src/github/daneren2005/dsub/service/DownloadService.java
+++ b/src/github/daneren2005/dsub/service/DownloadService.java
@@ -1211,7 +1211,7 @@ public class DownloadService extends Service {
reset();
// Resetup media player
- mediaPlaye.setAudioSessionId(audioSessionId);
+ mediaPlayer.setAudioSessionId(audioSessionId);
EqualizerController controller = null;
try {