summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/export/pcm.h1
-rw-r--r--firmware/pcm.c5
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
77void pcm_calculate_peaks(int *left, int *right); 77void pcm_calculate_peaks(int *left, int *right);
78const void* pcm_get_peak_buffer(int* count);
78size_t pcm_get_bytes_waiting(void); 79size_t pcm_get_bytes_waiting(void);
79 80
80void pcm_play_stop(void); 81void 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
186const 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