src/sh/jay/xposed/waze/AudioEmphasis.java
/**
     * Whenever Waze is finished outputting audio, it releases audio focus. It's
     * then safe for us to lower the volume *after* it has done that.
     * 
     * @param classLoader
     */
Whenever Waze is finished outputting audio, it releases audio focus. It's
then safe for us to lower the volume *after* it has done that.

@param classLoader
Whenever Waze is finished outputting audio it releases audio focus . It ' s then safe for us to lower the volume * after * it has done that . @param classLoader
private void hookWazeReleaseAudioFocus(final ClassLoader classLoader) {
        findAndHookMethod(WAZE_SOUNDMANAGER_CLASS_NAME, classLoader, WAZE_BEFORE_AUDIO_PLAYS_METHOD, new AudioAware_XC_MethodHook() {
            @Override
            protected void afterHookedMethod(MethodHookParam param) throws Throwable {           	
        		AudioManager mgr = this.getAudioManager(param);
            	debug("[START] afterHookedMethod of " + param.method.getName());
        		if (null != mgr) {
        			int previousStreamVolume = getPreviousStreamVolume();
        			mgr.setStreamVolume(AudioManager.STREAM_MUSIC, previousStreamVolume, generateSetStreamVolumeFlags());
                	debug("Updated audio to " + previousStreamVolume);
                }
            	debug("[END] afterHookedMethod of " + param.method.getName());
            }
        });
    }
private void hookWazeReleaseAudioFocus ( final ClassLoader classLoader ) { findAndHookMethod ( WAZE_SOUNDMANAGER_CLASS_NAME , classLoader , WAZE_BEFORE_AUDIO_PLAYS_METHOD , new AudioAware_XC_MethodHook ( ) { @ Override protected void afterHookedMethod ( MethodHookParam param ) throws Throwable { AudioManager mgr = this . getAudioManager ( param ) ; debug ( "[START] afterHookedMethod of " + param . method . getName ( ) ) ; if ( null != mgr ) { int previousStreamVolume = getPreviousStreamVolume ( ) ; mgr . setStreamVolume ( AudioManager . STREAM_MUSIC , previousStreamVolume , generateSetStreamVolumeFlags ( ) ) ; debug ( "Updated audio to " + previousStreamVolume ) ; } debug ( "[END] afterHookedMethod of " + param . method . getName ( ) ) ; } } ) ; }
Whenever Waze is finished outputting audio, it releases audio focus.
Whenever Waze is finished outputting audio it releases audio focus .