mirror of
https://github.com/Oibaf66/fbzx-wii.git
synced 2024-12-29 01:51:53 +01:00
Fixed ASND click sound, reverted to ASND sound (SDL sound works as well)
This commit is contained in:
parent
c8a1731887
commit
2d74dd0c21
@ -1222,7 +1222,7 @@ int main(int argc,char *argv[])
|
||||
#ifdef GEKKO
|
||||
dblbuffer=1;
|
||||
hwsurface=1;
|
||||
//sound_type=SOUND_ASND; //play_click does not work with ASND double buffer
|
||||
sound_type=SOUND_ASND; //play_click does not work with ASND double buffer
|
||||
setenv("HOME", "/fbzx-wii", 1);
|
||||
|
||||
//initialize libfat library
|
||||
|
@ -47,7 +47,8 @@
|
||||
|
||||
|
||||
#if defined(GEKKO)
|
||||
# include <wiiuse/wpad.h>
|
||||
#include <wiiuse/wpad.h>
|
||||
#include <asndlib.h>
|
||||
#endif
|
||||
|
||||
#ifdef DEBUG
|
||||
@ -1619,6 +1620,14 @@ int menu_is_inited(void)
|
||||
//Sound must be reseted before calling this function
|
||||
void play_click(sound)
|
||||
{
|
||||
|
||||
if (sound_type == SOUND_ASND)
|
||||
{
|
||||
ASND_SetVoice(2,VOICE_STEREO_16BIT_BE,ordenador.freq,0, click_buffer_pointer[sound],len_click_buffer[sound],
|
||||
255, 255, NULL);
|
||||
return;
|
||||
}
|
||||
|
||||
int inc;
|
||||
int len_click_buffer_norm = len_click_buffer[sound]/ordenador.increment;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user