X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=audio_mixer.h;h=5ea79dea73713c82c6400c7855d53380cd3d844f;hb=ee04fe8f673413b3a904e8232179a4010dd26b42;hp=93c9beb375768c3ed1707b8c8fec764bda017400;hpb=455786e07d6ea91bc8af639723f64ae367d6b4c6;p=nageru diff --git a/audio_mixer.h b/audio_mixer.h index 93c9beb..5ea79de 100644 --- a/audio_mixer.h +++ b/audio_mixer.h @@ -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 {