|
libsidplayfp
2.0.2
|
#include <sidemu.h>


Public Types | |
| enum | { OUTPUTBUFFERSIZE = 5000 } |
Public Member Functions | |
| sidemu (sidbuilder *builder) | |
| virtual void | clock ()=0 |
| virtual bool | lock (EventScheduler *scheduler) |
| virtual void | unlock () |
| virtual void | voice (unsigned int num, bool mute)=0 |
| virtual void | model (SidConfig::sid_model_t model, bool digiboost)=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 |
Public Member Functions inherited from libsidplayfp::c64sid | |
| virtual void | reset (uint8_t volume)=0 |
| void | reset () |
| void | poke (uint_least16_t address, uint8_t value) override |
| uint8_t | peek (uint_least16_t address) override |
Protected Attributes | |
| EventScheduler * | eventScheduler |
| event_clock_t | m_accessClk |
| short * | m_buffer |
| The sample buffer. | |
| int | m_bufferpos |
| Current position in buffer. | |
| bool | m_status |
| bool | isLocked |
| std::string | m_error |
Static Protected Attributes | |
| 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 libsidplayfp::c64sid | |
| 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 |
Clock the SID chip.
Implemented in libsidplayfp::HardSID, libsidplayfp::exSID, libsidplayfp::ReSID, and libsidplayfp::ReSIDfp.
|
inline |
Get a detailed error message.
|
virtual |
Set execution environment and lock sid to it.
Reimplemented in libsidplayfp::HardSID, and libsidplayfp::exSID.
|
pure virtual |
Set SID model.
Implemented in libsidplayfp::HardSID, libsidplayfp::exSID, libsidplayfp::ReSID, and libsidplayfp::ReSIDfp.
|
inlinevirtual |
Set the sampling method.
| systemfreq | |
| outputfreq | |
| method | |
| fast |
|
virtual |
Unlock sid.
Reimplemented in libsidplayfp::HardSID, and libsidplayfp::exSID.
|
pure virtual |
Mute/unmute voice.
Implemented in libsidplayfp::HardSID, libsidplayfp::exSID, libsidplayfp::ReSID, and libsidplayfp::ReSIDfp.
1.8.18