Menu

queueSample

Majenko Technologies

Format

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

Description

Queue a sample for playing.

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

queueSample(pulse_rifle, pulse_rifle_len, 0, 0);

Related

Wiki: Firmware Functions

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.