summaryrefslogtreecommitdiff
path: root/deadbeef.h
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <waker@users.sourceforge.net>2013-10-28 22:36:46 +0100
committerGravatar Alexey Yakovenko <waker@users.sourceforge.net>2013-10-28 22:36:46 +0100
commitd5bad39e15fae6770a84787823c56d066cee614a (patch)
tree09a026c46ce2f8420b148506f627a9dea12c3bf3 /deadbeef.h
parentbdd531322954ad92509c20a00c7372c893cdf412 (diff)
improved visualization API; improved scope
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);