Skip to content
  • Tanu Kaskinen's avatar
    sink-input, source-output: Add hooks for preferred device changes · 737ebcdf
    Tanu Kaskinen authored and PulseAudio Marge Bot's avatar PulseAudio Marge Bot committed
    The hooks are fired when the preferred device changes. This is useful
    for module-stream-restore.
    
    I added new set_preferred_sink/source() functions for firing the hooks.
    The functions also log the preferred device changes.
    
    There was already pa_sink_input_set_preferred_sink(), but that had a
    side effect of moving the stream, so I needed a new function. Since it
    can be confusing when the two similarly named functions should be
    called, I added a comment for pa_sink_input_set_preferred_sink() that
    explains the different situations.
    
    Part-of: <pulseaudio/pulseaudio!535>
    737ebcdf