setHeadsetAudioPlayGain

open fun setHeadsetAudioPlayGain(@NonNull context: Context, volume: Int)

Call this method to change the value of the audio play gain for headset output

Parameters

context

Context:The application context

volume

int:The audio play gain for headset output (in dB)