]> git.sesse.net Git - nageru/blobdiff - audio_mixer.h
Small cleanup in AudioMixer::set_input_mapping().
[nageru] / audio_mixer.h
index c7841fbdf32125116803af67dfffe4d0f3c66a34..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 {
@@ -177,6 +183,7 @@ private:
                std::unique_ptr<ResamplingQueue> resampling_queue;
                int64_t next_local_pts = 0;
                std::string name;
+               unsigned capture_frequency = OUTPUT_FREQUENCY;
                // Which channels we consider interesting (ie., are part of some input_mapping).
                std::set<unsigned> interesting_channels;
        };