Added logging

master
M66B 3 weeks ago
parent b10c917e54
commit fb1e8f5e29

@ -91,6 +91,8 @@ public class MediaPlayerHelper {
sem = new Semaphore(0);
}
Log.i("Playing sound=" + uri);
AudioAttributes attrs = new AudioAttributes.Builder()
.setContentType(AudioAttributes.CONTENT_TYPE_SONIFICATION)
.setUsage(alarm ? AudioAttributes.USAGE_ALARM : AudioAttributes.USAGE_NOTIFICATION)
@ -157,6 +159,8 @@ public class MediaPlayerHelper {
nm.cancel("alarm", 1);
}
Log.i("Played sound=" + uri);
synchronized (lock) {
sem = null;
}

Loading…
Cancel
Save