]> git.sesse.net Git - nageru/blobdiff - nageru/audio_mixer.h
Support delaying audio sources selectively.
[nageru] / nageru / audio_mixer.h
index 14e7e85d098065aabc5cd39d70ed5b31a8713041..de6ff5414032a7f414d82b7195156c2921400a7c 100644 (file)
@@ -324,6 +324,10 @@ private:
                // Which channels we consider interesting (ie., are part of some input_mapping).
                std::set<unsigned> interesting_channels;
                bool silenced = false;
+
+               // Positive means the audio is delayed, negative means we try to have it earlier
+               // (although we can't time-travel!). Stored together with the input mapping.
+               double extra_delay_ms = 0.0;
        };
 
        const AudioDevice *find_audio_device(DeviceSpec device_spec) const