libresidfp 1.3.0
residfp_defs.h
Go to the documentation of this file.
1/*
2 * This file is part of libsidplayfp, a SID player engine.
3 *
4 * Copyright 2011-2026 Leandro Nini <drfiemost@users.sourceforge.net>
5 * Copyright 2007-2010 Antti Lankila
6 * Copyright 1999 Dag Lem <resid@nimrod.no>
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 */
22
23#ifndef RESIDFP_DEFS_H
24#define RESIDFP_DEFS_H
25
32#ifndef RESIDFP_EXTERN
33/* DLL building support on win32 hosts */
34# ifdef DLL_EXPORT /* defined by libtool (if required) */
35# define RESIDFP_EXTERN __declspec(dllexport)
36# endif
37# ifdef RESIDFP_DLL_IMPORT /* define if linking with this dll */
38# define RESIDFP_EXTERN __declspec(dllimport)
39# endif
40# ifndef RESIDFP_EXTERN /* static linking or !_WIN32 */
41# if (defined(__GNUC__) && (__GNUC__ >= 4)) || defined(__clang__)
42# define RESIDFP_EXTERN __attribute__ ((visibility("default")))
43# else
44# define RESIDFP_EXTERN
45# endif
46# endif
47#endif
48
49/* Deprecated attributes */
50#if __cplusplus >= 201402L
51# define RESIDFP_DEPRECATED [[deprecated]]
52#elif defined(_MSCVER)
53# define RESIDFP_DEPRECATED __declspec(deprecated)
54#elif defined(__GNUC__) || defined(__clang__)
55# define RESIDFP_DEPRECATED __attribute__ ((deprecated))
56#else
57# define RESIDFP_DEPRECATED
58#endif
59
60namespace reSIDfp
61{
65 typedef enum {
67 CSG8580
68 } ChipModel;
69
73 typedef enum { AVERAGE, WEAK, STRONG } CombinedWaveforms;
74
78 typedef enum {
81 NONE
82 } SamplingMethod;
83
87 typedef enum {
90 CAPS330
91 } CapsType;
92}
93
94#endif
@ RESAMPLE
Sinc resampling (high quality but CPU intensive)
Definition residfp_defs.h:80
@ NONE
No resampling (raw 1MHz output)
Definition residfp_defs.h:81
@ DECIMATE
Linear interpolation (fast but low quality)
Definition residfp_defs.h:79
@ MOS6581
Old MOS6581.
Definition residfp_defs.h:66
@ CSG8580
New CSG8580.
Definition residfp_defs.h:67
@ CAPS470
New 440pF.
Definition residfp_defs.h:89
@ CAPS2200
Old 2200pF.
Definition residfp_defs.h:88
@ CAPS330
"Galway" 330pF
Definition residfp_defs.h:90