mirror of
https://github.com/Oibaf66/uae-wii.git
synced 2024-11-14 23:05:08 +01:00
Removed noise entering the GUI
This commit is contained in:
parent
68d6423d5d
commit
d85f2a81e6
@ -174,6 +174,10 @@ void close_sound (void)
|
||||
uae_sem_destroy (&sound_init_sem);
|
||||
uae_sem_destroy (&callback_done_sem);
|
||||
have_sound = 0;
|
||||
|
||||
#ifdef DRIVESOUND
|
||||
driveclick_free();
|
||||
#endif
|
||||
}
|
||||
|
||||
int init_sound (void)
|
||||
@ -195,13 +199,20 @@ int init_sound (void)
|
||||
|
||||
void pause_sound (void)
|
||||
{
|
||||
|
||||
SDL_PauseAudio (1);
|
||||
clearbuffer();
|
||||
if (in_callback) {
|
||||
closing_sound = 1;
|
||||
uae_sem_post (&data_available_sem);
|
||||
}
|
||||
}
|
||||
|
||||
void resume_sound (void)
|
||||
{
|
||||
clearbuffer();
|
||||
SDL_PauseAudio (0);
|
||||
closing_sound = 0;
|
||||
}
|
||||
|
||||
void reset_sound (void)
|
||||
|
@ -18,7 +18,8 @@ extern void resume_sound (void);
|
||||
extern void pause_sound (void);
|
||||
extern void reset_sound (void);
|
||||
extern void driveclick_mix(uae_s16*, int); //Also defined in driveclick.h
|
||||
extern void driveclick_init(void);
|
||||
extern void driveclick_init(void); //Also defined in driveclick.h
|
||||
extern void driveclick_free(void); //Also defined in driveclick.h
|
||||
|
||||
STATIC_INLINE void check_sound_buffers (void)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user