1
0
mirror of https://github.com/jscrane/r65emu.git synced 2025-01-10 03:29:30 +00:00
r65emu/sound.h
2018-09-06 13:25:24 +01:00

16 lines
267 B
C++

#ifndef __SOUND_H__
#define __SOUND_H__
class Sound {
public:
void begin(unsigned pin, unsigned freq);
const uint8_t *play(const uint8_t *bytes, unsigned size);
void on_tick();
private:
volatile const uint8_t *_bytes;
volatile unsigned _size, _off;
};
#endif