diff options
author | Alexey Yakovenko <waker@users.sourceforge.net> | 2013-10-28 22:36:46 +0100 |
---|---|---|
committer | Alexey Yakovenko <waker@users.sourceforge.net> | 2013-10-28 22:36:46 +0100 |
commit | d5bad39e15fae6770a84787823c56d066cee614a (patch) | |
tree | 09a026c46ce2f8420b148506f627a9dea12c3bf3 /deadbeef.h | |
parent | bdd531322954ad92509c20a00c7372c893cdf412 (diff) |
improved visualization API; improved scope
Diffstat (limited to 'deadbeef.h')
-rw-r--r-- | deadbeef.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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); |