Ay

Struct Ay 

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

Ay audio type

Trait Implementations§

Source§

impl AudioExt for Ay

Source§

fn default() -> Self

Creates a default initialized object
Source§

fn set_volume(&mut self, volume: f32)

Sets the volume
Source§

fn set_looping(&mut self, flag: bool)

Set whether the audio is looping
Source§

fn set_auto_stop(&mut self, flag: bool)

Set auto stop
Source§

fn set_3d_min_max_distance(&mut self, min_distance: f32, max_distance: f32)

Set 3D min and max distances
Source§

fn set_3d_attenuation(&mut self, model: AttenuationModel, rolloff_factor: f32)

Set 3D attenuation
Source§

fn set_3d_doppler_factor(&mut self, doppler_factor: f32)

Set 3D doppler factor
Source§

fn set_3d_listener_relative(&mut self, flag: bool)

Set 3D listener relative
Source§

fn set_3d_distance_delay(&mut self, distance_delay: i32)

Set 3D distance delay
Source§

fn set_inaudible_behavior(&mut self, must_tick: bool, kill: bool)

Set inaudible behavior
Source§

fn set_loop_point(&mut self, loop_point: f64)

Set a loop point
Source§

fn loop_point(&self) -> f64

Get the loop point
Source§

fn set_filter<F: FilterExt>(&mut self, filter_id: u32, filter: Option<&F>)

Set a filter, the filter_id is assigned by the developer and becomes the id for that filter, and to cancel pass None as a filter to the already assigned id
Source§

fn stop(&mut self)

Stop
Source§

unsafe fn inner(&self) -> *mut *mut c_void

Get the inner pointer Read more
Source§

impl Debug for Ay

Source§

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

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

impl Drop for Ay

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl Send for Ay

Source§

impl Sync for Ay

Auto Trait Implementations§

§

impl Freeze for Ay

§

impl RefUnwindSafe for Ay

§

impl Unpin for Ay

§

impl UnwindSafe for Ay

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.