summaryrefslogtreecommitdiff
path: root/src/mixer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mixer.h')
-rw-r--r--src/mixer.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/mixer.h b/src/mixer.h
index 0adcdda..a5e5a98 100644
--- a/src/mixer.h
+++ b/src/mixer.h
@@ -99,17 +99,22 @@ public:
std::vector<std::string> enumValues();
/**
- * Get/set mixer volume level in dB.
- * On error (no such channel) -INF is returned.
+ * Set mixer volume level in dB.
+ * Returns 0 on succes. On error (no such channel) 1 returned.
*/
int setLevel(int channel, float level);
- // 0 on success, 1 on error.
+
+ /**
+ * Get mixer volume level in dB.
+ * On error (no such channel) -INF is returned.
+ */
float level(int channel);
typedef struct {
float min;
float max;
} range_t;
+
/**
* Poll the valid volume range of this mixer in dB.
*/