mirror of
https://github.com/jscrane/r65emu.git
synced 2024-11-17 13:04:50 +00:00
16 lines
273 B
C++
16 lines
273 B
C++
#ifndef __SOUND_DAC_H__
|
|
#define __SOUND_DAC_H__
|
|
|
|
class DAC {
|
|
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
|