[−][src]Struct alto::Context
A listener context.
Methods
impl Context
[src]
pub fn device(&self) -> &Device
[src]
The device from which this context was created.
pub fn as_raw(&self) -> *mut ALCcontext
[src]
Raw context pointer as provided by OpenAL.
pub fn is_extension_present(&self, ext: Al) -> bool
[src]
alIsExtensionPresent()
pub fn distance_model(&self) -> DistanceModel
[src]
alGetInteger(AL_DISTANCE_MODEL)
pub fn set_distance_model(&self, value: DistanceModel)
[src]
alDistanceModel()
pub fn using_source_distance_model(&self) -> bool
[src]
alIsEnabled(AL_SOURCE_DISTANCE_MODEL)
Requires AL_EXT_source_distance_model
pub fn use_source_distance_model(&self, value: bool) -> AltoResult<()>
[src]
alEnable/alDisable(AL_SOURCE_DISTANCE_MODEL)
Requires AL_EXT_source_distance_model
pub fn doppler_factor(&self) -> f32
[src]
alGetFloat(AL_DOPPLER_FACTOR)
pub fn set_doppler_factor(&self, value: f32) -> AltoResult<()>
[src]
alDopplerFactor()
pub fn speed_of_sound(&self) -> f32
[src]
alGetFloat(AL_SPEED_OF_SOUND)
pub fn set_speed_of_sound(&self, value: f32) -> AltoResult<()>
[src]
alSpeedOfSound()
pub fn gain(&self) -> f32
[src]
alGetListenerv(AL_GAIN)
pub fn set_gain(&self, value: f32) -> AltoResult<()>
[src]
alListenerf(AL_GAIN)
pub fn position<V: From<[f32; 3]>>(&self) -> V
[src]
alGetListenerfv(AL_POSITION)
pub fn set_position<V: Into<[f32; 3]>>(&self, value: V) -> AltoResult<()>
[src]
alListenerfv(AL_POSITION)
pub fn velocity<V: From<[f32; 3]>>(&self) -> V
[src]
alGetListenerfv(AL_VELOCITY)
pub fn set_velocity<V: Into<[f32; 3]>>(&self, value: V) -> AltoResult<()>
[src]
alListenerfv(AL_VELOCITY)
pub fn orientation<V: From<[f32; 3]>>(&self) -> (V, V)
[src]
alGetListenerfv(AL_ORIENTATION)
pub fn set_orientation<V: Into<[f32; 3]>>(
&self,
value: (V, V)
) -> AltoResult<()>
[src]
&self,
value: (V, V)
) -> AltoResult<()>
alListenerfv(AL_ORIENTATION)
pub fn soft_gain_limit(&self) -> AltoResult<f32>
[src]
alGetListenerf(AL_GAIN_LIMIT_SOFT)
Requires AL_SOFT_gain_clamp_ex
pub fn enumerate_soft_resamplers(&self) -> Vec<CString>
[src]
alGetStringiSOFT(AL_RESAMPLER_NAME_SOFT)
Requires AL_SOFT_source_resampler
pub fn meters_per_unit(&self) -> f32
[src]
alGetListenerf(AL_METERS_PER_UNIT)
Requires ALC_EXT_EFX
pub fn set_meters_per_unit(&self, value: f32) -> AltoResult<()>
[src]
alListenerf(AL_METERS_PER_UNIT)
Requires ALC_EXT_EFX
pub fn new_buffer<F: SampleFrame, B: AsBufferData<F>>(
&self,
data: B,
freq: i32
) -> AltoResult<Buffer>
[src]
&self,
data: B,
freq: i32
) -> AltoResult<Buffer>
alGenBuffers()
To ensure well defined state, the buffer is assigned data immediately.
pub fn new_static_source(&self) -> AltoResult<StaticSource>
[src]
alGenSources()
pub fn new_streaming_source(&self) -> AltoResult<StreamingSource>
[src]
alGenSources()
pub fn defer_updates(&self) -> DeferLock
[src]
alDeferUpdatesSOFT()
Requires AL_SOFT_deferred_updates
pub fn new_aux_effect_slot(&self) -> AltoResult<AuxEffectSlot>
[src]
alGenAuxiliaryEffectSlots()
Requires ALC_EXT_EFX
pub fn new_effect<E: Effect>(&self) -> AltoResult<E>
[src]
alGenEffects()
Requires ALC_EXT_EFX
pub fn new_filter<F: Filter>(&self) -> AltoResult<F>
[src]
alGenFilters()
Requires ALC_EXT_EFX
Trait Implementations
impl Send for Context
[src]
impl PartialEq<Context> for Context
[src]
fn eq(&self, other: &Context) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Sync for Context
[src]
impl Clone for Context
[src]
fn clone(&self) -> Context
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Eq for Context
[src]
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,