Android default volume

Android : 2017.09.25 17:05

Android default volume


frameworks/base/media/java/android/media/AudioService.java



   /** @hide Maximum volume index values for audio streams */

    private static int[] MAX_STREAM_VOLUME = new int[] {

        5,  // STREAM_VOICE_CALL

        7,  // STREAM_SYSTEM

        7,  // STREAM_RING

        10, // STREAM_MUSIC

        7,  // STREAM_ALARM

        7,  // STREAM_NOTIFICATION

        10, // STREAM_BLUETOOTH_SCO

        7,  // STREAM_SYSTEM_ENFORCED

        10, // STREAM_DTMF

        10, // STREAM_TTS

        10, // STREAM_EXT_SPEAKER

    };


    private static int[] DEFAULT_STREAM_VOLUME = new int[] {

        4,  // STREAM_VOICE_CALL

        7,  // STREAM_SYSTEM

        5,  // STREAM_RING

        10,  // STREAM_MUSIC

        6,  // STREAM_ALARM

        5,  // STREAM_NOTIFICATION

        7,  // STREAM_BLUETOOTH_SCO

        7,  // STREAM_SYSTEM_ENFORCED

        5,  // STREAM_DTMF

        5,  // STREAM_TTS

        5,  // STREAM_EXT_SPEAKER

    };

저작자 표시 비영리 변경 금지
신고
Posted by Real_G