mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-17 04:20:00 +03:00
Add comment
This commit is contained in:
parent
13ae0ba5f1
commit
6da4f1d84f
2 changed files with 4 additions and 0 deletions
|
@ -136,6 +136,9 @@ class CallRingPlayerOutgoing(
|
|||
mediaPlayer.setAudioAttributes(AudioAttributes.Builder()
|
||||
.setContentType(AudioAttributes.CONTENT_TYPE_SPEECH)
|
||||
.setUsage(AudioAttributes.USAGE_VOICE_COMMUNICATION)
|
||||
// TODO Change to ?
|
||||
// .setContentType(AudioAttributes.CONTENT_TYPE_UNKNOWN)
|
||||
// .setUsage(AudioAttributes.USAGE_NOTIFICATION_RINGTONE)
|
||||
.build())
|
||||
} else {
|
||||
@Suppress("DEPRECATION")
|
||||
|
|
|
@ -128,6 +128,7 @@ class VoiceMessageHelper @Inject constructor(
|
|||
mediaPlayer = MediaPlayer().apply {
|
||||
setAudioAttributes(
|
||||
AudioAttributes.Builder()
|
||||
// Do not use CONTENT_TYPE_SPEECH / USAGE_VOICE_COMMUNICATION because we want to play loud here
|
||||
.setContentType(AudioAttributes.CONTENT_TYPE_MUSIC)
|
||||
.setUsage(AudioAttributes.USAGE_MEDIA)
|
||||
.build()
|
||||
|
|
Loading…
Add table
Reference in a new issue