]> git.sesse.net Git - nageru/commitdiff
Fix so setting of output cards from the command line works again.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 26 Jan 2017 19:29:11 +0000 (20:29 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 26 Jan 2017 19:29:11 +0000 (20:29 +0100)
mixer.cpp

index a83d66ef7194a9ff21b01dbe4843c73bc1d852b9..0a657276be068af0694fd5bfd288b32e4cb276b7 100644 (file)
--- a/mixer.cpp
+++ b/mixer.cpp
@@ -203,6 +203,7 @@ Mixer::Mixer(const QSurfaceFormat &format, unsigned num_cards)
                alsa.reset(new ALSAOutput(OUTPUT_FREQUENCY, /*num_channels=*/2));
        }
        if (global_flags.output_card != -1) {
+               desired_output_card_index = global_flags.output_card;
                set_output_card_internal(global_flags.output_card);
        }
 }