Created
June 14, 2018 13:44
-
-
Save julioz/67c32cac0964de06e4533450c832bea8 to your computer and use it in GitHub Desktop.
Fetch the optimal output sample rate for the Android device's DAC
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val audioManager = context.getSystemService(Context.AUDIO_SERVICE) as AudioManager | |
val outputSampleRate = audioManager.getProperty(AudioManager.PROPERTY_OUTPUT_SAMPLE_RATE).toLong() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment