-int mixer_valid_channel(int api, const char *c) {
- const struct mixer *const m = find_mixer(api);
-
- return m ? m->validate_channel(c) : 1;
-}
-
-int mixer_valid_device(int api, const char *d) {
- const struct mixer *const m = find_mixer(api);
-
- return m ? m->validate_device(d) : 1;
-}
-
-int mixer_control(int *left, int *right, int set) {
- const struct mixer *const m = find_mixer(config->api);
-
- if(m) {
- if(set)
- return m->set(left, right);
- else
- return m->get(left, right);
- } else {
- static int reported;
-
- if(!reported) {
- error(0, "don't know how to get/set volume with this api");
- reported = 1;
- }
- return -1;
- }
-}
-
-const char *mixer_default_device(int api) {
+/** @brief Return true if we know how to drive the mixer
+ * @param api Sound api or -1 for default
+ * @return true if suppored, false otherwise
+ */
+int mixer_supported(int api) {