summaryrefslogtreecommitdiff
path: root/deadbeef.h
diff options
context:
space:
mode:
Diffstat (limited to 'deadbeef.h')
-rw-r--r--deadbeef.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/deadbeef.h b/deadbeef.h
index 5dc12615..1ea892ab 100644
--- a/deadbeef.h
+++ b/deadbeef.h
@@ -824,8 +824,15 @@ typedef struct {
// returns data size in bytes
// fmt and data will be filled with last bytes that came to the output plugin
// data size must be float[DDB_AUDIO_MEMORY_FRAMES]
+ // type is one of DDB_AUDIO_WAVEFORM and DDB_AUDIO_FREQ
void (*audio_get_waveform_data) (int type, float *data);
+ // register/unregister for getting continuous wave data
+ // mainly for visualization
+ // ctx must be unique
+ void (*register_continuous_wavedata_listener) (void *ctx, void (*callback)(void *ctx, ddb_waveformat_t *fmt, const float *data, int nsamples));
+ void (*unregister_continuous_wavedata_listener) (void *ctx);
+
// this is useful to mute/unmute audio, and query the muted status, from
// plugins, without touching the volume control
void (*audio_set_mute) (int mute);