Struct vtx::player::Player[][src]

pub struct Player<AY: AymBackend> { /* fields omitted */ }
Expand description

Performs sound sample generation using provided vtx file

Implementations

Constructs player instance from the given vtx file, sample_rate and stereo. stereo flag enables 2-channel sample generation.

Fills given samples slice with sound sample data. Returns quantity of samples which were filed in the buffer. When stereo mode is enabled, method returns overall samples count multiplied by thc channel count (2), so that regardless of the stereo mode there will be always samples[..sample_count] filled.

Reset playback state

Reset to start of the looped record

Sets frame position for playback

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.