#include <sidplayfp.h>
Public Member Functions | |
| const SidConfig & | config () const |
| const SidInfo & | info () const |
| bool | config (const SidConfig &cfg) |
| const char * | error () const |
| bool | fastForward (unsigned int percent) |
| bool | load (SidTune *tune) |
| uint_least32_t | play (short *buffer, uint_least32_t count) |
| bool | isPlaying () const |
| void | stop () |
| void | debug (bool enable, FILE *out) |
| void | mute (unsigned int sidNum, unsigned int voice, bool enable) |
| uint_least32_t | time () const |
| void | setRoms (const uint8_t *kernal, const uint8_t *basic=0, const uint8_t *character=0) |
| EventContext * | getEventContext () |
| uint_least16_t | getCia1TimerA () const |
| bool sidplayfp::config | ( | const SidConfig & | cfg | ) |
Configure the engine. Check error for detailed message if something goes wrong.
| cfg | the new configuration |
| const SidConfig & sidplayfp::config | ( | ) | const |
Get the current engine configuration.
| void sidplayfp::debug | ( | bool | enable, | |
| FILE * | out | |||
| ) |
Control debugging. Only has effect if library have been compiled with the --enable-debug option.
| enable | enable/disable debugging. | |
| out | the file where to redirect the debug info. |
| const char * sidplayfp::error | ( | ) | const |
Error message.
| bool sidplayfp::fastForward | ( | unsigned int | percent | ) |
Set the fast-forward factor.
| percent |
| uint_least16_t sidplayfp::getCia1TimerA | ( | ) | const |
Get the CIA 1 Timer A programmed value.
| EventContext * sidplayfp::getEventContext | ( | ) |
Get the event scheduler.
| const SidInfo & sidplayfp::info | ( | ) | const |
Get the current player informations.
| bool sidplayfp::isPlaying | ( | ) | const |
Check if the engine is playing or stopped.
| bool sidplayfp::load | ( | SidTune * | tune | ) |
| void sidplayfp::mute | ( | unsigned int | sidNum, | |
| unsigned int | voice, | |||
| bool | enable | |||
| ) |
Mute/unmute a SID channel.
| sidNum | the SID chip, 0 for the first one, 1 for the second. | |
| voice | the channel to mute/unmute. | |
| enable | true unmutes the channel, false mutes it. |
| uint_least32_t sidplayfp::play | ( | short * | buffer, | |
| uint_least32_t | count | |||
| ) |
Produce samples to play.
| buffer | pointer to the buffer to fill with samples. | |
| count | the size of the buffer measured in 16 bit samples. |
| void sidplayfp::setRoms | ( | const uint8_t * | kernal, | |
| const uint8_t * | basic = 0, |
|||
| const uint8_t * | character = 0 | |||
| ) |
Set ROMs. The ROMs are validate against known ones.
| kernal | pointer to Kernal ROM. | |
| basic | pointer to Basic ROM, generally needed only for BASIC tunes. | |
| character | pointer to character generator ROM. |
| void sidplayfp::stop | ( | ) |
Stop the engine.
| uint_least32_t sidplayfp::time | ( | ) | const |
Get the current playing time with respect to resolution returned by timebase.
1.5.9