Struct three::audio::Source [] [src]

pub struct Source { /* fields omitted */ }

Audio source. Can play only one sound at a time.

You must add it to the scene to play sounds. You may create several Sources to play sounds simultaneously.

Methods

impl Source
[src]

[src]

Add clip to the queue.

[src]

Pause current sound.

You can resume playback.

[src]

Resume playback after pausing.

[src]

Stop the playback by emptying the queue.

[src]

Adjust playback volume.

Default value is 1.0.

Trait Implementations

impl Clone for Source
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Source
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for Source
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for Source
[src]

impl Hash for Source
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl AsRef<Base> for Source
[src]

[src]

Performs the conversion.

impl Object for Source
[src]

[src]

Converts into the base type.

[src]

Invisible objects are not rendered by cameras.

[src]

Set both position, orientation and scale.

[src]

Set position.

[src]

Set orientation.

[src]

Set scale.

[src]

Set weights.

[src]

Rotates object in the specific direction of target.

Auto Trait Implementations

impl !Send for Source

impl !Sync for Source