MCPcopy Create free account
hub / github.com/android/ndk-samples / getVolume

Function getVolume

native-audio/app/src/main/cpp/native-audio-jni.cpp:550–557  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

548// expose the volume APIs to Java for one of the 3 players
549
550static SLVolumeItf getVolume() {
551 if (uriPlayerVolume != NULL)
552 return uriPlayerVolume;
553 else if (fdPlayerVolume != NULL)
554 return fdPlayerVolume;
555 else
556 return bqPlayerVolume;
557}
558
559void SetVolumeUriAudioPlayer(JNIEnv*, jclass, jint millibel) {
560 SLresult result;

Callers 4

SetVolumeUriAudioPlayerFunction · 0.85
SetMuteUriAudioPlayerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected