Menu

queueSingleSample

Majenko Technologies

Format

:::C
void queueSingleSample(const short *sample, int length, int delay, int speed)

Description

Queue a sample for playing. If the sample is already queued for playing, or is actively playing, do not queue the sample. This prevents the same sample from being overlaid on itself. Good for speech samples.

Parameters

  • sample Pointer to the sample in memory
  • length Length of sample in samples (16 bit short words)
  • delay Number of samples to delay before starting to play the sample
  • speed Playback speed modification. Positive is faster, negative is slower.

Example

queueSingleSample(eat_this, eat_this_len, 0, 0);

Related

Wiki: Firmware Functions

MongoDB Logo MongoDB