[][src]Struct alto::StaticSource

pub struct StaticSource { /* fields omitted */ }

A source that can play a shared static buffer.

Methods

impl StaticSource[src]

pub fn buffer(&self) -> Option<&Arc<Buffer>>[src]

pub fn set_buffer(&mut self, buf: Arc<Buffer>) -> AltoResult<()>[src]

alSourcei(AL_BUFFER)

pub fn clear_buffer(&mut self)[src]

alSourcei(AL_BUFFER)

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

alGetSourcei(AL_LOOPING)

pub fn set_looping(&mut self, value: bool)[src]

alSourcei(AL_LOOPING)

Trait Implementations

impl Source for StaticSource[src]

impl PartialEq<StaticSource> for StaticSource[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl Eq for StaticSource[src]

Auto Trait Implementations

Blanket Implementations

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

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

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.

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

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

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

impl<T> Erased for T