} else {
// TODO: ResamplingQueue should probably take the full device spec.
// (It's only used for console output, though.)
- device->resampling_queue.reset(new ResamplingQueue(device_spec.index, OUTPUT_FREQUENCY, OUTPUT_FREQUENCY, device->interesting_channels.size()));
+ device->resampling_queue.reset(new ResamplingQueue(device_spec.index, device->capture_frequency, OUTPUT_FREQUENCY, device->interesting_channels.size()));
}
device->next_local_pts = 0;
}
std::unique_ptr<ResamplingQueue> resampling_queue;
int64_t next_local_pts = 0;
std::string name;
+ unsigned capture_frequency = OUTPUT_FREQUENCY;
// Which channels we consider interesting (ie., are part of some input_mapping).
std::set<unsigned> interesting_channels;
};
#ifndef _DEFS_H
#define _DEFS_H
-#define OUTPUT_FREQUENCY 48000
+#define OUTPUT_FREQUENCY 48000 // Currently needs to be exactly 48000, since bmusb outputs in that.
#define MAX_FPS 60
#define WIDTH 1280
#define HEIGHT 720