diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2012-05-02 20:53:07 -0400 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2012-05-02 20:53:07 -0400 |
commit | e189b33ff4cc530cb6e59a17b260675d7341e551 (patch) | |
tree | 948b635696cbea2eac432303fa2821cfbff13670 /firmware/export/pcm_mixer.h | |
parent | c0208f0f64c68a97c67e42efc1b39df7c75bf7da (diff) |
Clean up peak calculating code.
Mixer needn't keep peak data around that will never be used. Just
pass pcm_peaks structure to it instead of allocating for every
channel. Plugin API becomes incompatible.
vu_meter digital mode was still using global peak calculation;
switch it to playback channel like the rest.
Remove some accumulated soil peaks inside pcm.c and make it more
generic.
Change-Id: Ib4d268d80b6a9d09915eea1c91eab483c1a2c009
Diffstat (limited to 'firmware/export/pcm_mixer.h')
-rw-r--r-- | firmware/export/pcm_mixer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/export/pcm_mixer.h b/firmware/export/pcm_mixer.h index 5d8deb2bbf..f6d212d8e0 100644 --- a/firmware/export/pcm_mixer.h +++ b/firmware/export/pcm_mixer.h @@ -111,7 +111,7 @@ const void * mixer_channel_get_buffer(enum pcm_mixer_channel channel, int *count /* Calculate peak values for channel */ void mixer_channel_calculate_peaks(enum pcm_mixer_channel channel, - int *left, int *right); + struct pcm_peaks *peaks); /* Adjust channel pointer by a given offset to support movable buffers */ void mixer_adjust_channel_address(enum pcm_mixer_channel channel, |