-
Notifications
You must be signed in to change notification settings - Fork 233
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix naming of audio devices under PipeWire
Under PulseAudio, the user-friendly name for each audio device was stored under its `device.description` property. Under PipeWire, `device.description` is the name of the sound card, not the source/sink. This results in all source devices showing their sound card's name in NoiseTorch. Since I have multiple sources on the same sound card, it meant all my microphones had the same name, making NoiseTorch unusable. This commit changes the assignment of device names. When running under PipeWire, the `pulseaudio.Source.Description` field holds the correct device name, while the `pulseaudio.Source.PropList["device.description"]` field that was being used previously is the sound card's description. The NoiseTorch context must now be passed to the `getSources` and `getSinks` functions so they can check whether the program is running under PulseAudio or PipeWire.
- Loading branch information
Showing
2 changed files
with
18 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters