diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/export/pcm.h | 1 | ||||
-rw-r--r-- | firmware/pcm.c | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/firmware/export/pcm.h b/firmware/export/pcm.h index 444e0c9c09..b9ad913100 100644 --- a/firmware/export/pcm.h +++ b/firmware/export/pcm.h | |||
@@ -75,6 +75,7 @@ void pcm_play_data(pcm_more_callback_type get_more, | |||
75 | unsigned char* start, size_t size); | 75 | unsigned char* start, size_t size); |
76 | 76 | ||
77 | void pcm_calculate_peaks(int *left, int *right); | 77 | void pcm_calculate_peaks(int *left, int *right); |
78 | const void* pcm_get_peak_buffer(int* count); | ||
78 | size_t pcm_get_bytes_waiting(void); | 79 | size_t pcm_get_bytes_waiting(void); |
79 | 80 | ||
80 | void pcm_play_stop(void); | 81 | void pcm_play_stop(void); |
diff --git a/firmware/pcm.c b/firmware/pcm.c index cddb2eaecd..0e89cb90c9 100644 --- a/firmware/pcm.c +++ b/firmware/pcm.c | |||
@@ -183,6 +183,11 @@ void pcm_calculate_peaks(int *left, int *right) | |||
183 | *right = peaks[1]; | 183 | *right = peaks[1]; |
184 | } | 184 | } |
185 | 185 | ||
186 | const void* pcm_get_peak_buffer(int * count) | ||
187 | { | ||
188 | return pcm_play_dma_get_peak_buffer(count); | ||
189 | } | ||
190 | |||
186 | /**************************************************************************** | 191 | /**************************************************************************** |
187 | * Functions that do not require targeted implementation but only a targeted | 192 | * Functions that do not require targeted implementation but only a targeted |
188 | * interface | 193 | * interface |