#include <movit/flat_input.h>
#include <functional>
-#include "bmusb.h"
+#include "bmusb/bmusb.h"
#include "h264encode.h"
#include "pbo_frame_allocator.h"
#include "ref_counted_frame.h"
#include "ref_counted_gl_sync.h"
#include "theme.h"
+#include "resampler.h"
#define NUM_CARDS 2
QSurface *surface;
QOpenGLContext *context;
- bool new_data_ready = false; // Whether new_frame contains anything.
+ bool new_data_ready = false; // Whether new_frame and new_frame_audio contains anything.
+ bool should_quit = false;
RefCountedFrame new_frame;
GLsync new_data_ready_fence; // Whether new_frame is ready for rendering.
+ std::vector<float> new_frame_audio;
std::condition_variable new_data_ready_changed; // Set whenever new_data_ready is changed.
+ Resampler *resampler = nullptr;
};
CaptureCard cards[NUM_CARDS]; // protected by <bmusb_mutex>