| 1 |
#pragma once |
| 2 |
|
| 3 |
#include <cstdint> |
| 4 |
#include <memory> |
| 5 |
|
| 6 |
namespace AltASAP |
| 7 |
{ |
| 8 |
|
| 9 |
class PokeyPimpl; |
| 10 |
|
| 11 |
class Pokey |
| 12 |
{ |
| 13 |
public: |
| 14 |
|
| 15 |
Pokey(); |
| 16 |
void init( uint32_t pokeyClock, uint32_t sampleRate ); |
| 17 |
~Pokey(); |
| 18 |
|
| 19 |
void write( uint8_t address, uint8_t value ); |
| 20 |
int16_t sampleAudio( short* oscb = nullptr ); |
| 21 |
|
| 22 |
uint8_t const* getRegisterPool(); |
| 23 |
|
| 24 |
void reset(); |
| 25 |
|
| 26 |
private: |
| 27 |
uint32_t mPokeyClock; |
| 28 |
uint32_t mSampleRate; |
| 29 |
std::unique_ptr<PokeyPimpl> mPokey; |
| 30 |
}; |
| 31 |
|
| 32 |
} |