From: Steinar H. Gunderson Date: Wed, 10 Aug 2016 20:58:27 +0000 (+0200) Subject: Add a comment about hotswapping issues. X-Git-Tag: 1.4.0~105 X-Git-Url: https://git.sesse.net/?p=nageru;a=commitdiff_plain;h=99fe9fd44f57c9872eae24745da9c7a422ab0c98 Add a comment about hotswapping issues. --- diff --git a/audio_mixer.cpp b/audio_mixer.cpp index 93d59f4..426125f 100644 --- a/audio_mixer.cpp +++ b/audio_mixer.cpp @@ -252,6 +252,9 @@ vector AudioMixer::get_output(double pts, unsigned num_samples, Resamplin lock_guard 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()) {