summaryrefslogtreecommitdiffstats
path: root/apps/pcmbuf.c
diff options
context:
space:
mode:
authorJeffrey Goode <jeffg7@gmail.com>2009-09-25 15:46:38 +0000
committerJeffrey Goode <jeffg7@gmail.com>2009-09-25 15:46:38 +0000
commitcf19ba5599b1cba212705ddb22166acf25eca83c (patch)
tree99e66ab4a5526ec7c36521c19179d96e42d7c3ae /apps/pcmbuf.c
parentb9a17dd0ceb1edc3e8d08522f82f9dfeabe53a53 (diff)
downloadrockbox-cf19ba5599b1cba212705ddb22166acf25eca83c.tar.gz
rockbox-cf19ba5599b1cba212705ddb22166acf25eca83c.tar.bz2
rockbox-cf19ba5599b1cba212705ddb22166acf25eca83c.zip
Replace limiter with dynamic range compressor
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22832 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/pcmbuf.c')
-rw-r--r--apps/pcmbuf.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/apps/pcmbuf.c b/apps/pcmbuf.c
index 66a4ed4128..319e3e8044 100644
--- a/apps/pcmbuf.c
+++ b/apps/pcmbuf.c
@@ -1170,30 +1170,6 @@ bool pcmbuf_is_crossfade_enabled(void)
* Commit any remaining samples in the PCM buffer for playback. */
void pcmbuf_play_remainder(void)
{
- pcmbuf_flush_limiter_buffer();
-
if (audiobuffer_fillpos)
pcmbuf_flush_fillpos();
}
-
-/** FLUSH LIMITER BUFFER
- * Empty the limiter buffer and commit its contents
- * to the PCM buffer for playback. */
-void pcmbuf_flush_limiter_buffer(void)
-{
- char *dest;
- int out_count = LIMITER_BUFFER_SIZE;
-
- /* create room at the end of the PCM buffer for any
- samples that may be held back in the limiter buffer */
- while ((dest = pcmbuf_request_buffer(&out_count)) == NULL)
- {
- cancel_cpu_boost();
- sleep(1);
- }
-
- /* flush the limiter buffer into the PCM buffer */
- out_count = dsp_flush_limiter_buffer(dest);
- if (out_count > 0)
- pcmbuf_write_complete(out_count);
-}