aboutsummaryrefslogtreecommitdiff
path: root/src/utils/volume.rs
diff options
context:
space:
mode:
authorShoelace <pierre.leidbring@gmail.com>2021-05-19 21:44:58 +0200
committerGitHub <noreply@github.com>2021-05-19 22:44:58 +0300
commit2a23bd20440b0d1a359c6bb4385b6771f2657a3b (patch)
treeec4052da5dff822c70ab20216298fe5be4abfeb7 /src/utils/volume.rs
parentb1d81bf8c936509b6f83b2eac98da8ae72e0a4e3 (diff)
Threaded to async (#58)
* Add async deps * Rename blocks to 'BlockManager' * Refactor "Blocks" to own module * Make all util fn async * Remove stray println
Diffstat (limited to 'src/utils/volume.rs')
-rw-r--r--src/utils/volume.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/volume.rs b/src/utils/volume.rs
index 05c1dbe..47b4ed3 100644
--- a/src/utils/volume.rs
+++ b/src/utils/volume.rs
@@ -3,7 +3,7 @@ use crate::types::ThreadsData;
use alsa::mixer::{Mixer, SelemChannelId, SelemId};
// getting volume percentage
-pub fn get_volume() -> ThreadsData {
+pub async fn get_volume() -> ThreadsData {
let card = if CONFIG.volume.card == "PULSE" {
"pulse"
} else {