]> git.sesse.net Git - nageru/commitdiff
Add a comment about hotswapping issues.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 10 Aug 2016 20:58:27 +0000 (22:58 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 19 Oct 2016 22:55:44 +0000 (00:55 +0200)
audio_mixer.cpp

index 93d59f4cc6f4017d9d43bc5ab45ff09b4710fe9f..426125f888061a17546de06c4d3338b90098892a 100644 (file)
@@ -252,6 +252,9 @@ vector<float> AudioMixer::get_output(double pts, unsigned num_samples, Resamplin
        lock_guard<mutex> lock(audio_mutex);
 
        // Pick out all the interesting channels from all the cards.
+       // TODO: If the card has been hotswapped, the number of channels
+       // might have changed; if so, we need to do some sort of remapping
+       // to silence.
        for (unsigned card_index = 0; card_index < num_cards; ++card_index) {
                AudioDevice *device = &cards[card_index];
                if (!device->interesting_channels.empty()) {