GB_apu_output_t

Struct GB_apu_output_t 

Source
#[repr(C)]
pub struct GB_apu_output_t {
Show 19 fields pub sample_rate: c_uint, pub sample_cycles: c_uint, pub cycles_since_render: c_uint, pub last_update: [c_uint; 4], pub current_sample: [GB_sample_t; 4], pub summed_samples: [GB_sample_t; 4], pub dac_discharge: [f64; 4], pub channel_muted: [bool; 4], pub edge_triggered: [bool; 4], pub highpass_mode: GB_highpass_mode_t, pub highpass_rate: f64, pub highpass_diff: GB_double_sample_t, pub sample_callback: GB_sample_callback_t, pub interference_volume: f64, pub interference_highpass: f64, pub output_file: *mut FILE, pub output_format: GB_audio_format_t, pub output_error: c_int, pub square_sweep_disable_stepping: bool,
}

Fields§

§sample_rate: c_uint§sample_cycles: c_uint§cycles_since_render: c_uint§last_update: [c_uint; 4]§current_sample: [GB_sample_t; 4]§summed_samples: [GB_sample_t; 4]§dac_discharge: [f64; 4]§channel_muted: [bool; 4]§edge_triggered: [bool; 4]§highpass_mode: GB_highpass_mode_t§highpass_rate: f64§highpass_diff: GB_double_sample_t§sample_callback: GB_sample_callback_t§interference_volume: f64§interference_highpass: f64§output_file: *mut FILE§output_format: GB_audio_format_t§output_error: c_int§square_sweep_disable_stepping: bool

Trait Implementations§

Source§

impl Clone for GB_apu_output_t

Source§

fn clone(&self) -> GB_apu_output_t

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for GB_apu_output_t

Source§

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

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

impl Copy for GB_apu_output_t

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.