feat: prepare M8 release candidate
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include "audio_ring_buffer.h"
|
||||
#include "linear_resampler.h"
|
||||
#include "input_latency_metrics.h"
|
||||
#include "native_smoke.h"
|
||||
#include "session_rules.h"
|
||||
#include "timing_metrics.h"
|
||||
@@ -108,6 +109,18 @@ int main() {
|
||||
}
|
||||
if (ntsc_pulses != 15 || pal_pulses != 15 || neslite::turbo_gate(-1.0)) return 40;
|
||||
|
||||
neslite::InputLatencyMetrics input_latency(4);
|
||||
input_latency.record(1'000'000, 2'000'000);
|
||||
input_latency.record(1'000'000, 3'000'000);
|
||||
input_latency.record(1'000'000, 4'000'000);
|
||||
input_latency.record(1'000'000, 5'000'000);
|
||||
input_latency.record(1'000'000, 10'000'000);
|
||||
const auto latency = input_latency.snapshot();
|
||||
if (latency.samples != 4 || std::abs(latency.average_ms - 4.5) > 0.0001 ||
|
||||
std::abs(latency.p95_ms - 9.0) > 0.0001 || std::abs(latency.maximum_ms - 9.0) > 0.0001) return 63;
|
||||
input_latency.reset();
|
||||
if (input_latency.snapshot().samples != 0) return 64;
|
||||
|
||||
const std::vector<std::uint8_t> abc = {'a', 'b', 'c'};
|
||||
if (neslite::sha256_hex(abc) != "ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad") return 41;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user