Added disable sound option.

This commit is contained in:
masscat 2007-04-16 20:00:14 +00:00
parent 94c8424882
commit e7f28ff180
2 changed files with 17 additions and 17 deletions

View File

@ -26,42 +26,42 @@ BOOL click = FALSE;
BOOL fini = FALSE;
unsigned long glock = 0;
void desmume_mem_init();
u8 *desmume_rom_data = NULL;
u32 desmume_last_cycle;
void desmume_init()
void desmume_init( int disable_sound)
{
NDS_Init();
SPU_ChangeSoundCore(SNDCORE_SDL, 735 * 4);
if ( !disable_sound) {
SPU_ChangeSoundCore(SNDCORE_SDL, 735 * 4);
}
execute = FALSE;
}
void desmume_free()
void desmume_free( void)
{
execute = FALSE;
NDS_DeInit();
}
void desmume_pause()
void desmume_pause( void)
{
execute = FALSE;
}
void desmume_resume()
void desmume_resume( void)
{
execute = TRUE;
}
void desmume_toggle()
void desmume_toggle( void)
{
execute = (execute) ? FALSE : TRUE;
}
BOOL desmume_running()
BOOL desmume_running( void)
{
return execute;
}
void desmume_cycle()
void desmume_cycle( void)
{
u16 keypad;
/* Joystick events */

View File

@ -24,15 +24,15 @@
#include "globals.h"
extern void desmume_init();
extern void desmume_free();
extern void desmume_init( int disable_sound);
extern void desmume_free( void);
extern void desmume_pause();
extern void desmume_resume();
extern void desmume_toggle();
extern BOOL desmume_running();
extern void desmume_pause( void);
extern void desmume_resume( void);
extern void desmume_toggle( void);
extern BOOL desmume_running( void);
extern void desmume_cycle();
extern void desmume_cycle( void);
#endif /*__DESMUME_H__*/