libsidplayfp
1.0.3
|
00001 // --------------------------------------------------------------------------- 00002 // This file is part of reSID, a MOS6581 SID emulator engine. 00003 // Copyright (C) 1999 Dag Lem <resid@nimrod.no> 00004 // 00005 // This program is free software; you can redistribute it and/or modify 00006 // it under the terms of the GNU General Public License as published by 00007 // the Free Software Foundation; either version 2 of the License, or 00008 // (at your option) any later version. 00009 // 00010 // This program is distributed in the hope that it will be useful, 00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 // GNU General Public License for more details. 00014 // 00015 // You should have received a copy of the GNU General Public License 00016 // along with this program; if not, write to the Free Software 00017 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00018 // --------------------------------------------------------------------------- 00019 00020 #ifndef VICE__SIDDEFS_FP_H__ 00021 #define VICE__SIDDEFS_FP_H__ 00022 00023 #ifndef M_PI 00024 # define M_PI 3.14159265358979323846 00025 #endif 00026 00027 // Define bool, true, and false for C++ compilers that lack these keywords. 00028 #define RESID_HAVE_BOOL 1 00029 00030 #if !RESID_HAVE_BOOL 00031 typedef int bool; 00032 const bool true = 1; 00033 const bool false = 0; 00034 #endif 00035 00036 typedef unsigned char reg4; 00037 typedef unsigned char reg8; 00038 typedef unsigned short reg12; 00039 typedef unsigned short reg16; 00040 typedef unsigned int reg24; 00041 typedef unsigned int reg32; 00042 00043 namespace reSIDfp { 00044 00045 typedef enum chip_model { MOS6581=1, MOS8580 } ChipModel; 00046 00047 typedef enum sampling_method { DECIMATE=1, RESAMPLE } SamplingMethod; 00048 } 00049 00050 00051 extern "C" 00052 { 00053 #ifndef __VERSION_CC__ 00054 extern const char* residfp_version_string; 00055 #else 00056 const char* residfp_version_string = "0.0.2"; 00057 #endif 00058 } 00059 00060 // Inlining on/off. 00061 #define RESID_INLINING 1 00062 #define RESID_INLINE inline 00063 00064 #endif // not __SIDDEFS_H__