2 ** Nofrendo (c) 1998-2000 Matthew Conte (matt@conte.com)
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.
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.
16 ** Any permitted reproduction of these routines, in whole or in part,
17 ** must bear this legend.
22 ** Famicom Disk System sound emulation
31 static int32 fds_incsize = 0;
33 /* mix sound channels together */
44 /* write to registers */
46 fds_write (uint32 address, uint8 value)
50 /* reset state of vrcvi sound channels */
54 fds_incsize = apu_getcyclerate ();
68 static apu_memwrite fds_memwrite[] = {
69 {0x4040, 0x4092, fds_write},
70 {(uint32) - 1, (uint32) - 1, NULL}
84 ** Revision 1.4 2008/03/26 07:40:55 slomo
85 ** * gst/nsf/Makefile.am:
86 ** * gst/nsf/fds_snd.c:
87 ** * gst/nsf/mmc5_snd.c:
90 ** * gst/nsf/vrc7_snd.c:
91 ** * gst/nsf/vrcvisnd.c:
92 ** * gst/nsf/memguard.c:
93 ** * gst/nsf/memguard.h:
94 ** Remove memguard again and apply hopefully all previously dropped
95 ** local patches. Should be really better than the old version now.
97 ** Revision 1.3 2008-03-25 15:56:10 slomo
98 ** Patch by: Andreas Henriksson <andreas at fatal dot set>
99 ** * gst/nsf/Makefile.am:
100 ** * gst/nsf/dis6502.h:
101 ** * gst/nsf/fds_snd.c:
102 ** * gst/nsf/fds_snd.h:
103 ** * gst/nsf/fmopl.c:
104 ** * gst/nsf/fmopl.h:
105 ** * gst/nsf/gstnsf.c:
108 ** * gst/nsf/memguard.c:
109 ** * gst/nsf/memguard.h:
110 ** * gst/nsf/mmc5_snd.c:
111 ** * gst/nsf/mmc5_snd.h:
112 ** * gst/nsf/nes6502.c:
113 ** * gst/nsf/nes6502.h:
114 ** * gst/nsf/nes_apu.c:
115 ** * gst/nsf/nes_apu.h:
119 ** * gst/nsf/types.h:
120 ** * gst/nsf/vrc7_snd.c:
121 ** * gst/nsf/vrc7_snd.h:
122 ** * gst/nsf/vrcvisnd.c:
123 ** * gst/nsf/vrcvisnd.h:
124 ** Update our internal nosefart to nosefart-2.7-mls to fix segfaults
125 ** on some files. Fixes bug #498237.
126 ** Remove some // comments, fix some compiler warnings and use pow()
127 ** instead of a slow, selfmade implementation.
129 ** Revision 1.1 2003/04/08 20:53:00 ben
130 ** Adding more files...
132 ** Revision 1.3 2000/07/03 02:18:53 matt
133 ** much better external module exporting
135 ** Revision 1.2 2000/06/20 04:06:16 matt
136 ** migrated external sound definition to apu module
138 ** Revision 1.1 2000/06/20 00:06:47 matt