SidConfig.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-2001 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 SIDCONFIG_H
#define SIDCONFIG_H
#include <stdint.h>
#include "sidplayfp/siddefs.h"
class sidbuilder;
class SID_EXTERN SidConfig
{
public:
typedef enum {MONO = 1, STEREO} playback_t;
typedef enum {MOS6581, MOS8580} sid_model_t;
typedef enum {PAL, NTSC, OLD_NTSC, DREAN} c64_model_t;
typedef enum {INTERPOLATE, RESAMPLE_INTERPOLATE} sampling_method_t;
public:
static const uint_least16_t MAX_POWER_ON_DELAY = 0x1FFF;
static const uint_least16_t DEFAULT_POWER_ON_DELAY = MAX_POWER_ON_DELAY + 1;
static const uint_least32_t DEFAULT_SAMPLING_FREQ = 44100;
public:
c64_model_t defaultC64Model;
bool forceC64Model;
sid_model_t defaultSidModel;
bool forceSidModel;
playback_t playback;
uint_least32_t frequency;
uint_least16_t secondSidAddress;
sidbuilder *sidEmulation;
uint_least32_t leftVolume;
uint_least32_t rightVolume;
uint_least16_t powerOnDelay;
sampling_method_t samplingMethod;
bool fastSampling;
public:
SidConfig();
};
#endif // SIDCONFIG_H
SidConfig::secondSidAddress
uint_least16_t secondSidAddress
Definition: SidConfig.h:100
SidConfig::samplingMethod
sampling_method_t samplingMethod
Definition: SidConfig.h:128
SidConfig::sidEmulation
sidbuilder * sidEmulation
Definition: SidConfig.h:106
SidConfig::rightVolume
uint_least32_t rightVolume
Definition: SidConfig.h:116
SidConfig::defaultC64Model
c64_model_t defaultC64Model
Definition: SidConfig.h:66
SidConfig::forceSidModel
bool forceSidModel
Definition: SidConfig.h:83
SidConfig::defaultSidModel
sid_model_t defaultSidModel
Definition: SidConfig.h:78
SidConfig
Definition: SidConfig.h:39
SidConfig::frequency
uint_least32_t frequency
Definition: SidConfig.h:95
sidbuilder
Definition: sidbuilder.h:37
SidConfig::fastSampling
bool fastSampling
Definition: SidConfig.h:134
SidConfig::forceC64Model
bool forceC64Model
Definition: SidConfig.h:71
SidConfig::leftVolume
uint_least32_t leftVolume
Definition: SidConfig.h:111
SidConfig::playback
playback_t playback
Definition: SidConfig.h:90
SidConfig::powerOnDelay
uint_least16_t powerOnDelay
Definition: SidConfig.h:121