Struct alto::StaticSource [] [src]

pub struct StaticSource<'d: 'c, 'c> { /* fields omitted */ }

A source that can play shared static buffer.

Methods

impl<'d: 'c, 'c> StaticSource<'d, 'c>
[src]

The shared buffer currently associated with this source.

Associate a shared buffer with the source.

Trait Implementations

impl<'d: 'c, 'c> SourceTrait<'d> for StaticSource<'d, 'c>
[src]

The context from which this source was created.

Raw handle as provided by OpenAL.

Current playback state of the source.

Begin playing audio, or resume playing if previously paused.

Pause playback while retaining playback position.

Stop playback and reset playback to the beginning of the audio data.

Reset playback to the beginning of the audio data.

Whether the source has a listener-relative position.

Minimum gain that will be applied by the distance model.

Maximum gain that will be applied by the distance model.

Distance at which the source will have unmodified gain.

Rolloff factor of the distance model.

Distance beyond which the source will no longer attenuate.

Relative playback speed of the source.

Direction vector of the source.

Angle from the direction vector within which the source will be fully heard.

Angle from the direction vector within which the source will be heard at all.

Gain factor to determine attenuation when the listener is within the outer cone but outiside the inner cone.

Read cursor position in seconds.

Read cursor position in samples.

Read cursor position in bytes.

A tuple of a playback position and the amount of time until that position is heard, in seconds. Requires AL_SOFT_source_latency. Read more

A tuple of a fixed point playback position in samples, and the time until that position is heard, in nanoseconds. Requires AL_SOFT_source_latency. Read more

Total length of the queued audio data in seconds. Requires AL_SOFT_source_length. Read more

Total length of the queued audio data in samples. Requires AL_SOFT_source_length. Read more

Total length of the queued audio data in bytes. Requires AL_SOFT_source_length. Read more

Whether the audio data will be directly output to the corresponding output channels, bypassing any processing. Requires AL_SOFT_direct_channels. Read more

Distance model specific to this source. Requires AL_EXT_source_distance_model. Read more

impl<'d: 'c, 'c> PartialEq for StaticSource<'d, 'c>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'d: 'c, 'c> Eq for StaticSource<'d, 'c>
[src]