Commit 2ba56883 authored by Florian's avatar Florian

Decreased the max volume when jamming to avoid cracking sounds

parent 4954d272
......@@ -114,7 +114,7 @@ public class Spoofer {
AudioManager audioManager = (AudioManager) main.getSystemService(Context.AUDIO_SERVICE);
// not used ? int currentVolume = audioManager.getStreamVolume(AudioManager.STREAM_ALARM);
//Log.d("Spoofer", "Streamtype: " + String.valueOf(AudioManager.STREAM_MUSIC));
audioManager.setStreamVolume(3, (int) Math.round((audioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC) * 0.99D)), 0);
audioManager.setStreamVolume(3, (int) Math.round((audioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC) * 0.75D)), 0);
if (playingHandler) {
playtime = genNoise.getPlayertime(); //get the playertime depending on the generated whitenoise
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment