~oah-dev/oah/gst-plugins-bad

« back to all changes in this revision

Viewing changes to gst/nsf/mmc5_snd.h

  • Committer: Haakon Sporsheim
  • Date: 2009-03-12 13:52:03 UTC
  • Revision ID: haakon.sporsheim@tandberg.com-20090312135203-i5k294hgkushb0mt
Initial import of git repository: git://anongit.freedesktop.org/gstreamer/gst-plugins-bad (tag: RELEASE-0_10_10)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
** Nofrendo (c) 1998-2000 Matthew Conte (matt@conte.com)
 
3
**
 
4
**
 
5
** This program is free software; you can redistribute it and/or
 
6
** modify it under the terms of version 2 of the GNU Library General 
 
7
** Public License as published by the Free Software Foundation.
 
8
**
 
9
** This program is distributed in the hope that it will be useful, 
 
10
** but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
 
12
** Library General Public License for more details.  To obtain a 
 
13
** copy of the GNU Library General Public License, write to the Free 
 
14
** Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
15
**
 
16
** Any permitted reproduction of these routines, in whole or in part,
 
17
** must bear this legend.
 
18
**
 
19
**
 
20
** mmc5_snd.h
 
21
**
 
22
** Nintendo MMC5 sound emulation header
 
23
** $Id$
 
24
*/
 
25
 
 
26
#ifndef _MMC5_SND_H_
 
27
#define _MMC5_SND_H_
 
28
 
 
29
#define  MMC5_WRA0    0x5000
 
30
#define  MMC5_WRA1    0x5001
 
31
#define  MMC5_WRA2    0x5002
 
32
#define  MMC5_WRA3    0x5003
 
33
#define  MMC5_WRB0    0x5004
 
34
#define  MMC5_WRB1    0x5005
 
35
#define  MMC5_WRB2    0x5006
 
36
#define  MMC5_WRB3    0x5007
 
37
#define  MMC5_SMASK   0x5015
 
38
 
 
39
typedef struct mmc5rectangle_s
 
40
{
 
41
   uint8 regs[4];
 
42
 
 
43
   boolean enabled;
 
44
   
 
45
   int32 phaseacc;
 
46
   int32 freq;
 
47
   int32 output_vol;
 
48
   boolean fixed_envelope;
 
49
   boolean holdnote;
 
50
   uint8 volume;
 
51
 
 
52
   int32 env_phase;
 
53
   int32 env_delay;
 
54
   uint8 env_vol;
 
55
 
 
56
   int vbl_length;
 
57
   uint8 adder;
 
58
   int duty_flip;
 
59
} mmc5rectangle_t;
 
60
 
 
61
 
 
62
#include "nes_apu.h"
 
63
 
 
64
extern apuext_t mmc5_ext;
 
65
 
 
66
#endif /* !_MMC5_SND_H_ */
 
67
 
 
68
/*
 
69
** $Log$
 
70
** Revision 1.2  2008/03/25 15:56:11  slomo
 
71
** Patch by: Andreas Henriksson <andreas at fatal dot set>
 
72
** * gst/nsf/Makefile.am:
 
73
** * gst/nsf/dis6502.h:
 
74
** * gst/nsf/fds_snd.c:
 
75
** * gst/nsf/fds_snd.h:
 
76
** * gst/nsf/fmopl.c:
 
77
** * gst/nsf/fmopl.h:
 
78
** * gst/nsf/gstnsf.c:
 
79
** * gst/nsf/log.c:
 
80
** * gst/nsf/log.h:
 
81
** * gst/nsf/memguard.c:
 
82
** * gst/nsf/memguard.h:
 
83
** * gst/nsf/mmc5_snd.c:
 
84
** * gst/nsf/mmc5_snd.h:
 
85
** * gst/nsf/nes6502.c:
 
86
** * gst/nsf/nes6502.h:
 
87
** * gst/nsf/nes_apu.c:
 
88
** * gst/nsf/nes_apu.h:
 
89
** * gst/nsf/nsf.c:
 
90
** * gst/nsf/nsf.h:
 
91
** * gst/nsf/osd.h:
 
92
** * gst/nsf/types.h:
 
93
** * gst/nsf/vrc7_snd.c:
 
94
** * gst/nsf/vrc7_snd.h:
 
95
** * gst/nsf/vrcvisnd.c:
 
96
** * gst/nsf/vrcvisnd.h:
 
97
** Update our internal nosefart to nosefart-2.7-mls to fix segfaults
 
98
** on some files. Fixes bug #498237.
 
99
** Remove some // comments, fix some compiler warnings and use pow()
 
100
** instead of a slow, selfmade implementation.
 
101
**
 
102
** Revision 1.1  2003/04/08 20:53:01  ben
 
103
** Adding more files...
 
104
**
 
105
** Revision 1.2  2000/06/20 04:06:16  matt
 
106
** migrated external sound definition to apu module
 
107
**
 
108
** Revision 1.1  2000/06/20 00:06:47  matt
 
109
** initial revision
 
110
**
 
111
*/