]> git.sesse.net Git - nageru/blobdiff - mixer.h
Fix an issue where an ALSA card that was dead on boot could not be plugged in.
[nageru] / mixer.h
diff --git a/mixer.h b/mixer.h
index d8a9c8badf527e0e6dfcf2867156a10ad4677c9c..5a3e203dc9dc0dd5f02c6eb2c100364313521291 100644 (file)
--- a/mixer.h
+++ b/mixer.h
@@ -322,6 +322,11 @@ public:
                return cards[card_index].output != nullptr;
        }
 
+       bool card_is_ffmpeg(unsigned card_index) const {
+               assert(card_index < num_cards + num_video_inputs);
+               return cards[card_index].type == CardType::FFMPEG_INPUT;
+       }
+
        std::map<uint32_t, bmusb::VideoMode> get_available_video_modes(unsigned card_index) const {
                assert(card_index < num_cards);
                return cards[card_index].capture->get_available_video_modes();
@@ -369,6 +374,10 @@ public:
                cards[card_index].capture->set_audio_input(input);
        }
 
+       std::string get_ffmpeg_filename(unsigned card_index) const;
+
+       void set_ffmpeg_filename(unsigned card_index, const std::string &filename);
+
        void change_x264_bitrate(unsigned rate_kbit) {
                video_encoder->change_x264_bitrate(rate_kbit);
        }