Skip to content

Commit

Permalink
Document error case for generateAudioSessionIdV21
Browse files Browse the repository at this point in the history
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=220132865
  • Loading branch information
andrewlewis authored and ojw28 committed Nov 6, 2018
1 parent 8844694 commit a8d1f04
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -978,7 +978,10 @@ public static long msToUs(long timeMs) {
}

/**
* Returns a newly generated {@link android.media.AudioTrack} session identifier.
* Returns a newly generated audio session identifier, or {@link AudioManager#ERROR} if an error
* occurred in which case audio playback may fail.
*
* @see AudioManager#generateAudioSessionId()
*/
@TargetApi(21)
public static int generateAudioSessionIdV21(Context context) {
Expand Down

0 comments on commit a8d1f04

Please sign in to comment.