poly_voice.h 302 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#ifndef _poly_voice_h
#define _poly_voice_h

#include <stdint.h>

void voice_init(void);

// voice_acquire returns a voice number for playing a new note
uint8_t voice_acquire();

// voice_release releases a voice, if playing. If v is not playing this is a no-op.
void voice_release(uint8_t v);

#endif