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

Commit a5ec3545 authored by Steve Kondik's avatar Steve Kondik
Browse files

audiopolicy: Constrain session events to music streams

 * We're really only interested in music streams right now, but
   events are being generated for all streams (system sounds, etc).
 * Constrain for now, in the future we will filter based on client
   registrations.

Change-Id: Ic445052028c454eed146addebcdb28c4b26c4f20
parent 940b28bc
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -331,6 +331,11 @@ status_t AudioPolicyEffects::updateOutputAudioSessionInfo(audio_io_handle_t /* o

    Mutex::Autolock _l(mLock);

    // TODO: Handle other stream types based on client registration
    if (stream != AUDIO_STREAM_MUSIC) {
        return NO_ERROR;
    }

    // update AudioSessionInfo. This is used in the stream open/close path
    // to notify userspace applications about session creation and
    // teardown, allowing the app to make decisions about effects for