Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f26d4abe authored by Jeff Brown's avatar Jeff Brown Committed by Android (Google) Code Review
Browse files

Merge "Switch to using int stream instead of AudioAttributes"

parents dbbceffd 02014c8f
Loading
Loading
Loading
Loading
+7 −8
Original line number Diff line number Diff line
@@ -245,17 +245,16 @@ public final class MediaSession {
    }

    /**
     * Set the attributes for this session's local playback. This will affect
     * the system's default volume handling for this session. If
     * {@link #useRemotePlayback} was previously called it will stop receiving
     * volume commands and the system will begin handling volume changes.
     * Set the stream this session is playing on. This will affect the system's
     * volume handling for this session. If {@link #useRemotePlayback} was
     * previously called it will stop receiving volume commands and the system
     * will begin sending volume changes to the appropriate stream.
     * <p>
     * By default sessions use {@link AudioAttributes#USAGE_MEDIA}.
     * By default sessions are on {@link AudioManager#STREAM_MUSIC}.
     *
     * @param attributes The {@link AudioAttributes} for this session's
     *            playback.
     * @param stream The {@link AudioManager} stream this session is playing on.
     */
    public void useLocalPlayback(AudioAttributes attributes) {
    public void useLocalPlayback(int stream) {
        // TODO
    }