~ubuntu-branches/ubuntu/karmic/xmame/karmic

« back to all changes in this revision

Viewing changes to mess/sndhrdw/sid.h

  • Committer: Bazaar Package Importer
  • Author(s): Bruno Barrera C.
  • Date: 2007-02-16 10:06:54 UTC
  • mfrom: (2.1.5 edgy)
  • Revision ID: james.westby@ubuntu.com-20070216100654-iztas2cl47k5j039
Tags: 0.106-2
* Added Italian debconf templates translation. (closes: #382672)
* Added German debconf templates translation. (closes: #396610)
* Added Japanese debconf templates translation. (closes: #400011)
* Added Portuguese debconf templates translation. (closes: #409960)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef __SID_H_
2
 
#define __SID_H_
3
 
 
4
 
/*
5
 
  approximation of the sid6581 chip
6
 
  this part is for one chip,
7
 
*/
8
 
 
9
 
#include "includes/sid6581.h"
10
 
#include "sidtypes.h"
11
 
#include "sidvoice.h"
12
 
 
13
 
/* private area */
14
 
typedef struct _SID6581 {
15
 
    int on;
16
 
 
17
 
    int mixer_channel; /* mame stream/ mixer channel */
18
 
 
19
 
    int (*ad_read) (int which);
20
 
    SIDTYPE type;
21
 
    udword clock;
22
 
 
23
 
    uword PCMfreq; /* samplerate of the current systems soundcard/DAC */
24
 
    udword PCMsid, PCMsidNoise;
25
 
 
26
 
#if 0
27
 
        /* following depends on type */
28
 
        ptr2sidVoidFunc ModeNormalTable[16];
29
 
        ptr2sidVoidFunc ModeRingTable[16];
30
 
        /* for speed reason it could be better to make them global! */
31
 
        UINT8* waveform30;
32
 
        UINT8* waveform50;
33
 
        UINT8* waveform60;
34
 
        UINT8* waveform70;
35
 
#endif
36
 
        int reg[0x20];
37
 
 
38
 
/*      bool sidKeysOn[0x20], sidKeysOff[0x20]; */
39
 
 
40
 
        ubyte masterVolume;
41
 
        uword masterVolumeAmplIndex;
42
 
 
43
 
 
44
 
        struct {
45
 
                bool Enabled;
46
 
                UINT8 Type, CurType;
47
 
                filterfloat Dy, ResDy;
48
 
                UINT16 Value;
49
 
        } filter;
50
 
 
51
 
        sidOperator optr1, optr2, optr3;
52
 
    int optr3_outputmask;
53
 
} SID6581;
54
 
 
55
 
void sid6581_init (SID6581 *This);
56
 
 
57
 
bool sidEmuReset(SID6581 *This);
58
 
 
59
 
int sid6581_port_r (SID6581 *This, int offset);
60
 
void sid6581_port_w (SID6581 *This, int offset, int data);
61
 
 
62
 
void sid_set_type(SID6581 *This, SIDTYPE type);
63
 
 
64
 
void initMixerEngine(void);
65
 
void filterTableInit(void);
66
 
extern void MixerInit(bool threeVoiceAmplify);
67
 
 
68
 
void sidEmuFillBuffer(SID6581 *This, void* buffer, udword bufferLen );
69
 
 
70
 
#if 0
71
 
void sidFilterTableInit(void);
72
 
#endif
73
 
 
74
 
#endif