From 22b6def065ab7c2ca030f405577e34104ad20011 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Sat, 2 Jul 2011 11:55:38 +0000 Subject: Use playback channel directly for peakmeters and plugins using peak calculation. Also, for now, don't allow mixer playback to overlap recording, even if full duplex works. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30119 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/pcm_mixer.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'firmware/export/pcm_mixer.h') diff --git a/firmware/export/pcm_mixer.h b/firmware/export/pcm_mixer.h index 9c4e06e0be..be10601ffd 100644 --- a/firmware/export/pcm_mixer.h +++ b/firmware/export/pcm_mixer.h @@ -103,6 +103,10 @@ size_t mixer_channel_get_bytes_waiting(enum pcm_mixer_channel channel); /* Return pointer to channel's playing audio data and the size remaining */ 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); + /* Stop ALL channels and PCM and reset state */ void mixer_reset(void); -- cgit v1.2.3