Struct cubeb::StreamRef [] [src]

pub struct StreamRef(_);

Methods

impl StreamRef
[src]

[src]

Start playback.

[src]

Stop playback.

[src]

Reset stream to the default device.

[src]

Get the current stream playback position.

[src]

Get the latency for this stream, in frames. This is the number of frames between the time cubeb acquires the data in the callback and the listener can hear the sound.

[src]

Set the volume for a stream.

[src]

If the stream is stereo, set the left/right panning. If the stream is mono, this has no effect.

panning a number from -1.0 to 1.0. -1.0 means that the stream is fully mixed in the left channel, 1.0 means the stream is fully mixed in the right channel. 0.0 is equal power in the right and left channel (default).

[src]

Get the current output device for this stream.

[src]

Destroy a cubeb_device structure.

[src]

Set a callback to be notified when the output device changes.

[src]

impl StreamRef
[src]

[src]

[src]

[src]

Trait Implementations

impl AsRef<StreamRef> for Stream
[src]

[src]

Performs the conversion.

impl Borrow<StreamRef> for Stream
[src]

[src]

Immutably borrows from an owned value. Read more

impl Debug for StreamRef
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for StreamRef

impl !Sync for StreamRef