Skip to main content

AudioProvenanceStash

Struct AudioProvenanceStash 

Source
pub struct AudioProvenanceStash { /* private fields */ }
Expand description

Both audio stores, lifted out of the APU so a same-timeline restore can put them back.

This exists because of a shipped bug, not a hypothetical one. Pixel Provenance was non-functional from v2.3.2 to v2.3.6 because run-ahead’s per-frame rollback cleared the provenance store after the visible frame was produced and before the UI could read it — so the panel could never observe a populated record, and a comment two lines above the clear asserted the opposite. Audio Provenance rides the identical rollback.

The frontend takes this before restore_quiet and puts it back after, which leaves the restore’s own reasoning completely intact: a save-state load and a netplay rollback still clear, because those are genuine timeline changes. Run-ahead’s rollback is not — it returns to the timeline it just left.

Implementations§

Source§

impl AudioProvenanceStash

Source

pub const fn is_armed(&self) -> bool

Whether the store was armed when this stash was taken, so the caller can skip the put-back on the common path where nothing is armed.

Source

pub fn mix_trace(&self) -> Option<&MixTrace>

The stashed per-CPU-cycle mix trace, or None when unarmed.

v2.3.8 — read-only, so a detached stash can be inspected without being put back into an emulator first. rustynes-probe captures a trial’s provenance precisely so it never touches a live Nes again; routing the read through a scratch instance would undo that.

Source

pub fn register_attribution(&self) -> Option<&RegisterAttribution>

The stashed per-register write attribution, or None when unarmed. Companion to Self::mix_trace.

Trait Implementations§

Source§

impl Debug for AudioProvenanceStash

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for AudioProvenanceStash

Source§

fn default() -> AudioProvenanceStash

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.