Soundd: move to python (#30567)

soundd python
old-commit-hash: abe39e50766c418818bf72d2567db78978dbd466
This commit is contained in:
Justin Newberry
2023-12-05 18:10:01 -08:00
committed by GitHub
parent 202fa37808
commit 817161f3ac
18 changed files with 188 additions and 300 deletions
-8
View File
@@ -13,14 +13,6 @@ public:
static bool TICI() { return util::getenv("TICI", 0) == 1; }
static bool AGNOS() { return util::getenv("TICI", 0) == 1; }
static void set_volume(float volume) {
volume = util::map_val(volume, 0.f, 1.f, MIN_VOLUME, MAX_VOLUME);
char volume_str[6];
snprintf(volume_str, sizeof(volume_str), "%.3f", volume);
std::system(("pactl set-sink-volume @DEFAULT_SINK@ " + std::string(volume_str)).c_str());
}
static void config_cpu_rendering(bool offscreen) {
if (offscreen) {
setenv("QT_QPA_PLATFORM", "offscreen", 1);