pub struct ChipState {
    pub parameters: ChipParameters,
    /* private fields */
}
Expand description

The current state of the LSynth chip.

Fields

parameters: ChipParameters

Details how this chip is intended to operate.

Implementations

Creates a new LSynth chip.

Writes a tick worth of interlaced stereo samples generated by the chip to the start of the provided slice, then returns a struct containing information about how many samples it generated, and how many samples still need to be generated to complete a tick.

If the number of remaining samples is anything but zero, then the tick was not completed. Commands can still be sent at this point, but they will occur in between ticks.

Executes a command on the given channel.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

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.