1 /* FCE Ultra - NES/Famicom Emulator
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation; either version 2 of the License, or
6 * (at your option) any later version.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 #include <sys/ioctl.h>
24 #include <linux/soundcard.h>
32 extern unsigned long gp2x_dev[8];
34 // always have this call
35 INLINE void gp2x_sound_frame(void *blah, void *buff, int samples)
39 void WriteSound(int16 *Buffer, int Count)
41 write(gp2x_dev[3], Buffer, Count<<1);
45 void* gp2x_write_sound(void* blah)
50 void SilenceSound(int n)
55 int InitSound(FCEUGI *gi)
58 FCEUI_Sound(Settings.sound);
59 gp2x_sound_volume(soundvol, soundvol);
60 printf("InitSound() sound_rate: %d\n", Settings.sound);
64 uint32 GetMaxSound(void)
69 uint32 GetWriteSound(void)