Index: apps/plugins/CATEGORIES =================================================================== --- apps/plugins/CATEGORIES (revision 20710) +++ apps/plugins/CATEGORIES (working copy) @@ -20,6 +20,7 @@ disktidy,apps doom,games euroconverter,apps +fingersofrock,games fire,demos fireworks,demos firmware_flash,apps @@ -105,4 +106,5 @@ wavview,viewers wormlet,games xobox,games +xyscope,demos zxbox,viewers Index: apps/plugins/SOURCES =================================================================== --- apps/plugins/SOURCES (revision 20710) +++ apps/plugins/SOURCES (working copy) @@ -18,6 +18,7 @@ stopwatch.c vbrfix.c viewer.c +xyscope.c #ifdef HAVE_BACKLIGHT lamp.c #endif /* HAVE_BACKLIGHT */ @@ -51,7 +52,7 @@ rockblox1d.c brickmania.c maze.c -mazezam.c +mazezam.c text_editor.c wavview.c robotfindskitten.c Index: apps/plugin.c =================================================================== --- apps/plugin.c (revision 20710) +++ apps/plugin.c (working copy) @@ -427,6 +427,7 @@ pcm_play_pause, pcm_get_bytes_waiting, pcm_calculate_peaks, + pcm_get_peak_buffer, pcm_play_lock, pcm_play_unlock, #ifdef HAVE_RECORDING Index: apps/plugin.h =================================================================== --- apps/plugin.h (revision 20710) +++ apps/plugin.h (working copy) @@ -549,6 +549,7 @@ void (*pcm_play_pause)(bool play); size_t (*pcm_get_bytes_waiting)(void); void (*pcm_calculate_peaks)(int *left, int *right); + const void* (*pcm_get_peak_buffer)(int *count); void (*pcm_play_lock)(void); void (*pcm_play_unlock)(void); #ifdef HAVE_RECORDING Index: firmware/export/pcm.h =================================================================== --- firmware/export/pcm.h (revision 20710) +++ firmware/export/pcm.h (working copy) @@ -75,6 +75,7 @@ unsigned char* start, size_t size); void pcm_calculate_peaks(int *left, int *right); +const void* pcm_get_peak_buffer(int* count); size_t pcm_get_bytes_waiting(void); void pcm_play_stop(void); Index: firmware/pcm.c =================================================================== --- firmware/pcm.c (revision 20710) +++ firmware/pcm.c (working copy) @@ -180,6 +180,11 @@ *right = peaks[1]; } +const void* pcm_get_peak_buffer(int * count) +{ + return pcm_play_dma_get_peak_buffer(count); +} + /**************************************************************************** * Functions that do not require targeted implementation but only a targeted * interface