|
libsidplayfp
1.8.7
|
#include <sidemu.h>
Public Types | |
| enum | { OUTPUTBUFFERSIZE = 5000 } |
Public Member Functions | |
| sidemu (sidbuilder *builder) | |
| virtual void | clock ()=0 |
| virtual bool | lock (EventContext *env) |
| virtual void | unlock () |
| virtual void | voice (unsigned int num, bool mute)=0 |
| virtual void | model (SidConfig::sid_model_t model)=0 |
| virtual void | sampling (float systemfreq SID_UNUSED, float outputfreq SID_UNUSED, SidConfig::sampling_method_t method SID_UNUSED, bool fast SID_UNUSED) |
| const char * | error () const |
| sidbuilder * | builder () const |
| int | bufferpos () const |
| void | bufferpos (int pos) |
| short * | buffer () const |
| void | poke (uint_least16_t address, uint8_t value) |
| uint8_t | peek (uint_least16_t address) |
Public Member Functions inherited from c64sid | |
| virtual void | reset (uint8_t volume)=0 |
| void | reset () |
Protected Attributes | |
| EventContext * | m_context |
| event_clock_t | m_accessClk |
| short * | m_buffer |
| The sample buffer. | |
| int | m_bufferpos |
| Current position in buffer. | |
| bool | m_status |
| bool | m_locked |
| std::string | m_error |
Static Protected Attributes | |
| static std::string | m_credit |
| static const char | ERR_UNSUPPORTED_FREQ [] = "Unable to set desired output frequency." |
| static const char | ERR_INVALID_SAMPLING [] = "Invalid sampling method." |
| static const char | ERR_INVALID_CHIP [] = "Invalid chip model." |
Additional Inherited Members | |
Protected Member Functions inherited from component | |
| virtual uint8_t | read (uint_least8_t addr)=0 |
| virtual void | write (uint_least8_t addr, uint8_t data)=0 |
Inherit this class to create a new SID emulation.
| anonymous enum |
Buffer size. 5000 is roughly 5 ms at 96 kHz
|
inline |
Get the buffer.
|
inline |
Get the current position in buffer.
|
inline |
Set the position in buffer.
|
pure virtual |
|
inline |
Get a detailed error message.
|
virtual |
Set execution environment and lock sid to it.
Reimplemented in HardSID.
|
pure virtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Set the sampling method.
| systemfreq | |
| outputfreq | |
| method | |
| fast |
|
virtual |
Unlock sid.
Reimplemented in HardSID.
|
pure virtual |
1.8.12