sidplayfp.h
/*
* This file is part of libsidplayfp, a SID player engine.
*
* Copyright 2011-2013 Leandro Nini <drfiemost@users.sourceforge.net>
* Copyright 2007-2010 Antti Lankila
* Copyright 2000 Simon White
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndef SIDPLAYFP_H
#define SIDPLAYFP_H
#include <stdint.h>
#include <stdio.h>
#include "sidplayfp/siddefs.h"
#include "sidplayfp/sidversion.h"
class SidConfig;
class SidTune;
class SidInfo;
class EventContext;
// Private Sidplayer
namespace SIDPLAYFP_NAMESPACE
{
class Player;
}
class SID_EXTERN sidplayfp
{
private:
SIDPLAYFP_NAMESPACE::Player &sidplayer;
public:
sidplayfp();
~sidplayfp();
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;
};
#endif // SIDPLAYFP_H
sidplayfp
Definition: sidplayfp.h:46
SidTune
Definition: SidTune.h:38
SidInfo
Definition: SidInfo.h:31
EventContext
Definition: event.h:101
SidConfig
Definition: SidConfig.h:39
Player
Definition: player.h:56