libsidplayfp  0.3.5
sidtypes.h
1 /***************************************************************************
2  sidtypes.h - type definition file
3  -------------------
4  begin : Mon Jul 3 2000
5  copyright : (C) 2000 by Simon White
6  email : s_a_white@email.com
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef _sidtypes_h_
19 #define _sidtypes_h_
20 
21 #include <stdint.h>
22 
23 #include "sidplayfp/sidconfig.h"
24 
25 typedef int sid_fc_t[2];
26 typedef struct
27 {
28  sid_fc_t cutoff[0x800];
29  uint_least16_t points;
30 } sid_filter_t;
31 
32 typedef struct
33 {
34  /* distortion tunables */
35  float attenuation, distortion_nonlinearity, voice_nonlinearity;
36  /* type 3 tunables */
37  float baseresistance, offset, steepness, minimumfetresistance;
38  /* type 4 tunables */
39  float k, b;
41 
42 typedef unsigned int uint;
43 typedef float float32_t;
44 typedef double float64_t;
45 
46 #endif /* _sidtypes_h_ */