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.
16 #include "../../driver.h"
17 #include "../common/settings.h"
18 #include "../common/throttle.h"
19 #include "../libpicofe/linux/sndout_oss.h"
24 void WriteSound(int16 *Buffer, int Count)
26 sndout_oss_write_nb(Buffer, Count * 2);
29 void SilenceSound(int n)
36 FCEUI_Sound(Settings.sound_rate);
41 uint32 GetMaxSound(void)
46 uint32 GetWriteSound(void)
53 sndout_oss_start(Settings.sound_rate, 0, 2);