Skip to content

Commit

Permalink
pactl: use default sink
Browse files Browse the repository at this point in the history
  • Loading branch information
incognitojam committed Nov 30, 2022
1 parent 79927b1 commit f6cc216
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion system/hardware/pc/hardware.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ class HardwarePC : public HardwareNone {

char volume_str[6];
snprintf(volume_str, sizeof(volume_str), "%.3f", volume);
std::system(("pactl set-sink-volume 1 " + std::string(volume_str)).c_str());
std::system(("pactl set-sink-volume @DEFAULT_SINK@ " + std::string(volume_str)).c_str());
}
};
2 changes: 1 addition & 1 deletion system/hardware/tici/hardware.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class HardwareTici : public HardwareNone {

char volume_str[6];
snprintf(volume_str, sizeof(volume_str), "%.3f", volume);
std::system(("pactl set-sink-volume alsa_output.platform-soc_sound-tavil.stereo-fallback " + std::string(volume_str)).c_str());
std::system(("pactl set-sink-volume @DEFAULT_SINK@ " + std::string(volume_str)).c_str());
}

static bool get_ssh_enabled() { return Params().getBool("SshEnabled"); };
Expand Down

0 comments on commit f6cc216

Please sign in to comment.