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 to start of the looped record