Merge from Chips (audio related fixes)

This commit is contained in:
Dimitris Panokostas 2016-12-05 18:19:01 +01:00
parent 5b4df17be1
commit 247acd0575
2 changed files with 2 additions and 1 deletions

View file

@ -564,6 +564,7 @@ void gui_display (int shortcut)
/* Clear menu garbage at the bottom of the screen */
black_screen_now();
reset_sound();
resume_sound();
blkdev_exitgui();

View file

@ -41,7 +41,7 @@ STATIC_INLINE void set_sound_buffers (void)
STATIC_INLINE void clear_sound_buffers (void)
{
memset (sndbuffer, 0, 4 * (SNDBUFFER_LEN + 32) * DEFAULT_SOUND_CHANNELS);
memset (sndbuffer, 0, sizeof(sndbuffer));
}
#define PUT_SOUND_WORD_MONO(x) put_sound_word_mono_func(x)