Skip to content

Commit 71e1ed3

Browse files
committed
add comments
1 parent 44b7cfc commit 71e1ed3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/blocks/sound.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -952,8 +952,9 @@ impl Block for Sound {
952952
);
953953
let texts = self.format.render(&values)?;
954954

955-
// Reference: PulseAudio type definitions
956-
// https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/blob/0ce3008605e5f644fac4bb5edbb1443110201ec1/src/pulse/def.h#L1073-1100
955+
// TODO: Query port names instead? See https://github.com/greshake/i3status-rust/pull/1363#issue-1069904082
956+
// Reference: PulseAudio port name definitions are the first item in the well_known_descriptions struct:
957+
// https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/blob/0ce3008605e5f644fac4bb5edbb1443110201ec1/src/modules/alsa/alsa-mixer.c#L2709-L2731
957958
let headphones = self
958959
.device
959960
.active_port()

0 commit comments

Comments
 (0)