[][src]Struct gdnative_bindings::AudioStreamSample

pub struct AudioStreamSample { /* fields omitted */ }

core class AudioStreamSample inherits AudioStream (reference counted).

Official documentation

See the documentation of this class in the Godot engine's official documentation.

Memory management

The lifetime of this object is automatically managed through reference counting.

Class hierarchy

AudioStreamSample inherits methods from:

Methods

impl AudioStreamSample[src]

Constants

impl AudioStreamSample[src]

pub fn new() -> Self[src]

pub fn new_ref(&self) -> Self[src]

Creates a new reference to the same reference-counted object.

pub fn get_data(&self) -> ByteArray[src]

pub fn get_format(&self) -> AudioStreamSampleFormat[src]

pub fn get_loop_begin(&self) -> i64[src]

pub fn get_loop_end(&self) -> i64[src]

pub fn get_loop_mode(&self) -> AudioStreamSampleLoopMode[src]

pub fn get_mix_rate(&self) -> i64[src]

pub fn is_stereo(&self) -> bool[src]

pub fn save_to_wav(&mut self, path: GodotString) -> GodotResult[src]

pub fn set_data(&mut self, data: ByteArray)[src]

pub fn set_format(&mut self, format: i64)[src]

pub fn set_loop_begin(&mut self, loop_begin: i64)[src]

pub fn set_loop_end(&mut self, loop_end: i64)[src]

pub fn set_loop_mode(&mut self, loop_mode: i64)[src]

pub fn set_mix_rate(&mut self, mix_rate: i64)[src]

pub fn set_stereo(&mut self, stereo: bool)[src]

pub fn to_audio_stream(&self) -> AudioStream[src]

Up-cast.

pub fn to_resource(&self) -> Resource[src]

Up-cast.

pub fn to_reference(&self) -> Reference[src]

Up-cast.

pub fn to_object(&self) -> Object[src]

Up-cast.

pub fn cast<T: GodotObject>(&self) -> Option<T>[src]

Generic dynamic cast.

Methods from Deref<Target = AudioStream>

pub fn new_ref(&self) -> Self[src]

Creates a new reference to the same reference-counted object.

pub fn get_length(&self) -> f64[src]

pub fn to_resource(&self) -> Resource[src]

Up-cast.

pub fn to_reference(&self) -> Reference[src]

Up-cast.

pub fn to_object(&self) -> Object[src]

Up-cast.

pub fn cast<T: GodotObject>(&self) -> Option<T>[src]

Generic dynamic cast.

Trait Implementations

impl Clone for AudioStreamSample[src]

impl Debug for AudioStreamSample[src]

impl Deref for AudioStreamSample[src]

type Target = AudioStream

The resulting type after dereferencing.

impl DerefMut for AudioStreamSample[src]

impl Drop for AudioStreamSample[src]

impl FromVariant for AudioStreamSample[src]

impl GodotObject for AudioStreamSample[src]

impl Instanciable for AudioStreamSample[src]

impl ToVariant for AudioStreamSample[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.