Skip to content

Conversation

@Schnouki
Copy link
Contributor

This allows other PulseAudio clients (like mixers etc.) to show more details about the audio stream.

For example, using the standard PulseAudio volume control (pavucontrol):

  • before:
    2023-09-13-10_38_34
  • after:
    2023-09-13-11_05_22

It would even be possible to do things like add the current track's title and artist in env variables, but I don't think anyone actually makes use of this, so it seems rather pointless to me. Instead, I decided to focus on the most useful ones.

Librespot only sets those when used as a standalone binary, but not as a library: https://github.com/librespot-org/librespot/blob/054074c920d5c6acf0210faa3cd849dc4e065828/src/main.rs#L1211-L1246

Documentation about this PulseAudio feature: https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/Developer/Clients/ApplicationProperties/

This allows other PulseAudio clients (like mixers etc.) to show more details
about the audio stream.
Copy link
Owner

@aome510 aome510 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good. Thanks

@aome510 aome510 merged commit bc605a7 into aome510:master Sep 15, 2023
@Schnouki Schnouki deleted the pulseaudio-env-variables branch September 18, 2023 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants