]> git.sesse.net Git - nageru/blobdiff - audio_mixer.h
Small cleanup in AudioMixer::set_input_mapping().
[nageru] / audio_mixer.h
index 93c9beb375768c3ed1707b8c8fec764bda017400..5ea79dea73713c82c6400c7855d53380cd3d844f 100644 (file)
@@ -35,6 +35,12 @@ enum class InputSourceType { SILENCE, CAPTURE_CARD };
 struct DeviceSpec {
        InputSourceType type;
        unsigned index;
+
+       bool operator< (const DeviceSpec &other) const {
+               if (type != other.type)
+                       return type < other.type;
+               return index < other.index;
+       }
 };
 
 struct InputMapping {