]> git.sesse.net Git - nageru/blobdiff - audio_mixer.h
Communicate number of channels to the input mapping dialog.
[nageru] / audio_mixer.h
index d45fd438153de3b6c768d59e760bb4c6b64c16d1..f2c77b91c8130cfba4a4edd3aa5200df87178b94 100644 (file)
@@ -46,6 +46,10 @@ struct DeviceSpec {
                return index < other.index;
        }
 };
+struct DeviceInfo {
+       std::string name;
+       unsigned num_channels;
+};
 
 static inline uint64_t DeviceSpec_to_key(const DeviceSpec &device_spec)
 {
@@ -81,7 +85,7 @@ public:
        void set_current_loudness(double level_lufs) { loudness_lufs = level_lufs; }
 
        void set_fader_volume(unsigned bus_index, float level_db) { fader_volume_db[bus_index] = level_db; }
-       std::map<DeviceSpec, std::string> get_names() const;
+       std::map<DeviceSpec, DeviceInfo> get_devices() const;
        void set_name(DeviceSpec device_spec, const std::string &name);
 
        void set_input_mapping(const InputMapping &input_mapping);