Rename Audio Stream? #44
Is there a way to change the displayed information about the audio stream? I searched the docs but couldn't find anything related to it. |
Replies: 2 comments
|
Hi! There is no OwnAudioSharp setting for this, and unfortunately the library cannot control it On Linux the engine works through ALSA (via cpal), and ALSA has no concept of "application name" at all. What you see in the mixer is what the PipeWire ALSA compatibility plugin came up with: the client name is built from the process name (PipeWire ALSA [glacier-music]), and ALSA Playback is the fixed default stream name. So you have to set it outside the library before the process starts — e.g. PIPEWIRE_ALSA='{ node.name=glacier-music node.description="Glacier Music" media.name="Now playing" }' ./glacier-music Note: setting it within the application using Environment.SetEnvironmentVariable will not work - on Unix, .NET keeps its own copy and never calls setenv, so the ALSA plugin won't see it. Proper per-stream naming would require a native PipeWire/PulseAudio backend, which is not planned - cpal only talks to ALSA on Linux. |
|
Thanks for explaining. If I ever get round to packaging it shouldn't be too difficult to set in the provided launch script or .desktop as you mentioned. |

Hi!
There is no OwnAudioSharp setting for this, and unfortunately the library cannot control it
On Linux the engine works through ALSA (via cpal), and ALSA has no concept of "application name" at all. What you see in the mixer is what the PipeWire ALSA compatibility plugin came up with: the client name is built from the process name (PipeWire ALSA [glacier-music]), and ALSA Playback is the fixed default stream name.
So you have to set it outside the library before the process starts — e.g.
PIPEWIRE_ALSA='{ node.name=glacier-music node.description="Glacier Music" media.name="Now playing" }' ./glacier-music
(works from a .desktop Exec=env … line or a startup script), or with a stream.rules …