-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
android: add more audio stream types
- Loading branch information
1 parent
6dd623d
commit 5e67094
Showing
3 changed files
with
54 additions
and
26 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,26 @@ | ||
/// Enum class mapped to Android audio stream types. | ||
/// | ||
/// [AudioStream.voiceCall] refers to AudioManager.STREAM_VOICE_CALL. | ||
/// [AudioStream.system] refers to AudioManager.STREAM_SYSTEM. | ||
/// [AudioStream.ring] refers to AudioManager.STREAM_RING. | ||
/// [AudioStream.music] refers to AudioManager.STREAM_MUSIC. | ||
/// [AudioStream.alarm] refers to AudioManager.STREAM_ALARM. | ||
enum AudioStream { | ||
voiceCall, | ||
system, | ||
ring, | ||
music, | ||
/// Used to identify the volume of audio streams for accessibility prompts. | ||
accessibility, | ||
|
||
/// Used to identify the volume of audio streams for alarms. | ||
alarm, | ||
|
||
/// Used to identify the volume of audio streams for DTMF Tones. | ||
dtmf, | ||
|
||
/// Used to identify the volume of audio streams for music playback. | ||
music, | ||
|
||
/// Used to identify the volume of audio streams for notifications. | ||
notification, | ||
|
||
/// Used to identify the volume of audio streams for the phone ring. | ||
ring, | ||
|
||
/// Used to identify the volume of audio streams for system sounds. | ||
system, | ||
|
||
/// Used to identify the volume of audio streams for phone calls. | ||
voiceCall, | ||
} |