From 99fe9fd44f57c9872eae24745da9c7a422ab0c98 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Wed, 10 Aug 2016 22:58:27 +0200 Subject: [PATCH] Add a comment about hotswapping issues. --- audio_mixer.cpp | 3 +++ 1 file changed, 3 insertions(+) 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()) { -- 2.39.2