diff options
| author | Michael Sevakis <jethead71@rockbox.org> | 2008-12-13 02:48:36 +0000 |
|---|---|---|
| committer | Michael Sevakis <jethead71@rockbox.org> | 2008-12-13 02:48:36 +0000 |
| commit | 826688e69953530d6ccadb77df05395940b8fe30 (patch) | |
| tree | b9d83559f8930b8c4fb6c57466d5328469425051 /apps/plugin.c | |
| parent | cc57381707a2372809ce5398fa49cef64ec138bc (diff) | |
| download | rockbox-826688e69953530d6ccadb77df05395940b8fe30.zip rockbox-826688e69953530d6ccadb77df05395940b8fe30.tar.gz rockbox-826688e69953530d6ccadb77df05395940b8fe30.tar.bz2 rockbox-826688e69953530d6ccadb77df05395940b8fe30.tar.xz | |
PCM buffer beeping needs the audio buffer reset in order to work after operations that trash the buffer or keyclick won't be audible until playback is restarted.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19413 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.c')
| -rw-r--r-- | apps/plugin.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/plugin.c b/apps/plugin.c index e55ecd4..cf015e2 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -784,6 +784,13 @@ int plugin_load(const char* plugin, const void* parameter) splash(HZ*2, str(LANG_PLUGIN_ERROR)); break; } + +#if CONFIG_CODEC == SWCODEC && !defined (HAVE_HARDWARE_BEEP) + /* Did the plugin trash the buffer? Restore it. */ + if (audio_buffer_state() == AUDIOBUF_STATE_TRASHED) + audio_buffer_reset(); +#endif + return PLUGIN_OK; } |