mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-10-01 01:26:06 -04:00
Retain CaptureConfig pointer in StreamInput.
This commit is contained in:
parent
3e08318012
commit
d2cf129fd5
@ -35,6 +35,7 @@ using namespace lpc43xx;
|
||||
class StreamInput {
|
||||
public:
|
||||
StreamInput(CaptureConfig* const config) :
|
||||
config { config },
|
||||
K { config->write_size_log2 + config->buffer_count_log2 },
|
||||
event_bytes_mask { (1UL << config->write_size_log2) - 1 },
|
||||
data { std::make_unique<uint8_t[]>(1UL << K) },
|
||||
@ -60,6 +61,7 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
CaptureConfig* const config;
|
||||
const size_t K;
|
||||
const uint64_t event_bytes_mask;
|
||||
uint64_t bytes_written = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user