X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=mixer.h;h=045e9b1212fccb0f1392cd80fe87903c4079e898;hb=134f9d70a4cd03dc1105d9d94b6003fedcef4760;hp=9e4c4d52a222e0d16a38693479f6e91859061269;hpb=5ad8ae0b4287ae6f43f7f7a8d30d69165cc80f99;p=nageru diff --git a/mixer.h b/mixer.h index 9e4c4d5..045e9b1 100644 --- a/mixer.h +++ b/mixer.h @@ -323,7 +323,7 @@ private: void place_rectangle(movit::Effect *resample_effect, movit::Effect *padding_effect, float x0, float y0, float x1, float y1); void thread_func(); void handle_hotplugged_cards(); - void schedule_audio_resampling_tasks(unsigned dropped_frames, int num_samples_per_frame, int length_per_frame); + void schedule_audio_resampling_tasks(unsigned dropped_frames, int num_samples_per_frame, int length_per_frame, bool is_preroll); void render_one_frame(int64_t duration); void audio_thread_func(); void release_display_frame(DisplayFrame *frame); @@ -402,6 +402,7 @@ private: int dropped_frames; // Since last frame. int num_samples; // Audio samples needed for this output frame. int64_t frame_duration; // In TIMEBASE units. + bool is_preroll; }; OutputFrameInfo get_one_frame_from_each_card(unsigned master_card_index, bool master_card_is_output, CaptureCard::NewFrame new_frames[MAX_VIDEO_CARDS], bool has_new_frame[MAX_VIDEO_CARDS]);