X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=mixer.h;h=32e8168f64cc96a62c3cdc58a51d4773417c7e48;hb=f245cb0d0453e0e8bd5c7d40720bd0a5b50454ee;hp=3c1a952a81575ec80bfdb56f63252e0fdf4847e9;hpb=fb5360d92864760d70d8a69c8dd4a9e738bcc0f0;p=nageru diff --git a/mixer.h b/mixer.h index 3c1a952..32e8168 100644 --- a/mixer.h +++ b/mixer.h @@ -126,6 +126,21 @@ public: return theme->get_channel_name(channel); } + int get_channel_signal(unsigned channel) const + { + return theme->get_channel_signal(channel); + } + + int map_signal(unsigned channel) + { + return theme->map_signal(channel); + } + + void set_signal_mapping(int signal, int card) + { + return theme->set_signal_mapping(signal, card); + } + bool get_supports_set_wb(unsigned channel) const { return theme->get_supports_set_wb(channel); @@ -209,6 +224,13 @@ public: void reset_meters(); + unsigned get_num_cards() const { return num_cards; } + + std::string get_card_description(unsigned card_index) const { + assert(card_index < num_cards); + return cards[card_index].usb->get_description(); + } + private: void bm_frame(unsigned card_index, uint16_t timecode, FrameAllocator::Frame video_frame, size_t video_offset, uint16_t video_format,