1
0
Fork 0
forked from len0rd/rockbox

Keyclick fixup take two. It is only 88 samples (2msec) long so keep a small static buffer around for beeps less than or equal to keyclick duration. This way it operates no matter the buffer state and still won't interfere with alternate PCM operations like recording or plugin playback.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19415 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Sevakis 2008-12-13 06:01:08 +00:00
parent bdcdf8b5e4
commit 93572e2a9e
12 changed files with 52 additions and 63 deletions

View file

@ -124,18 +124,6 @@ static void usb_slave_mode(bool on)
rc = disk_mount_all();
if (rc <= 0) /* no partition */
panicf("mount: %d",rc);
#ifndef BOOTLOADER
#if CONFIG_CPU == IMX31L || CONFIG_USBOTG == USBOTG_ISP1583 || \
defined(CPU_TCC77X) || defined(CPU_TCC780X)
/* These use a static transfer buffer */
#elif defined(USB_STORAGE) && !defined (HAVE_HARDWARE_BEEP)
/* Storage can use the audio buffer, restore it if it did to get
* keyclicks back. */
if (audio_buffer_state() == BUFFER_STATE_TRASHED)
audio_buffer_reset();
#endif /* USB_STORAGE */
#endif /* BOOTLOADER */
}
}
#endif