fix: stabilize desktop audio playback

This commit is contained in:
2026-03-13 18:58:07 +03:00
parent f86e3c2284
commit 260e7ff9db
10 changed files with 399 additions and 67 deletions

View File

@@ -1,7 +1,7 @@
use nesemu::prelude::*;
use nesemu::{
AudioOutput, HostConfig, InputProvider, JOYPAD_BUTTONS_COUNT, NullAudio, NullInput, NullVideo,
RuntimeError, VideoOutput,
AudioOutput, HostConfig, InputProvider, NullAudio, NullInput, NullVideo, RuntimeError,
VideoOutput, JOYPAD_BUTTONS_COUNT,
};
#[derive(Clone, Copy)]
@@ -212,7 +212,7 @@ fn public_api_regression_hashes_for_reference_rom() {
.expect("run frames");
let expected_frame_hash = 0x42d1_20e3_54e0_a325_u64;
let expected_audio_hash = 0xa075_8dd6_adea_e775_u64;
let expected_audio_hash = 0x19f5_be12_66f3_37c5_u64;
assert_eq!(
video.last_hash, expected_frame_hash,