/usr/include/sidplayfp/SidConfig.h is in libsidplayfp-dev 1.2.2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 | /*
* 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;
/**
* SidConfig
*
* An instance of this class is used to transport emulator settings
* to and from the interface class.
*/
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:
/**
* Maximum power on delay
* - Delays <= MAX produce constant results
* - Delays > MAX produce random results
*/
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:
/**
* Intended c64 model when unknown or forced
* - PAL
* - NTSC
* - OLD_NTSC
* - DREAN
*/
c64_model_t defaultC64Model;
/**
* Force the model to #defaultC64Model ignoring tune's clock setting
*/
bool forceC64Model;
/**
* Intended sid model when unknown or forced
* - MOS6581
* - MOS8580
*/
sid_model_t defaultSidModel;
/**
* Force the sid model to #defaultSidModel
*/
bool forceSidModel;
/**
* Playbak mode
* - MONO
* - STEREO
*/
playback_t playback;
/**
* Sampling frequency
*/
uint_least32_t frequency;
/**
* Install a second SID chip at this address
*/
uint_least16_t secondSidAddress;
/**
* Pointer to selected emulation,
* reSIDfp, reSID or hardSID
*/
sidbuilder *sidEmulation;
/**
* Left channel volume
*/
uint_least32_t leftVolume;
/**
* Right channel volume
*/
uint_least32_t rightVolume;
/**
* Power on delay cycles
*/
uint_least16_t powerOnDelay;
/**
* Sampling method
* - INTERPOLATE
* - RESAMPLE_INTERPOLATE
*/
sampling_method_t samplingMethod;
/**
* Faster low-quality emulation,
* available only for reSID
*/
bool fastSampling;
public:
SidConfig();
};
#endif // SIDCONFIG_H
|