summaryrefslogtreecommitdiff
path: root/streamer.h
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <waker@users.sourceforge.net>2013-11-01 21:41:14 +0100
committerGravatar Alexey Yakovenko <waker@users.sourceforge.net>2013-11-01 21:41:14 +0100
commit87a915f831fa97cec0e7c061345c6bd1223decd3 (patch)
treebcc52abe2498a37551f5eca64029ae670a34e1b5 /streamer.h
parentf30a353184a725089ec3f775632f22802e296e89 (diff)
improved vis API
Diffstat (limited to 'streamer.h')
-rw-r--r--streamer.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/streamer.h b/streamer.h
index fd45662b..5bbfd9b1 100644
--- a/streamer.h
+++ b/streamer.h
@@ -149,9 +149,15 @@ struct handler_s *
streamer_get_handler (void);
void
-register_continuous_wavedata_listener (void *ctx, int type, void (*callback)(void *ctx, int type, ddb_waveformat_t *fmt, const float *data, int nsamples));
+vis_waveform_listen (void *ctx, void (*callback)(void *ctx, ddb_audio_data_t *data));
void
-unregister_continuous_wavedata_listener (void *ctx, int type);
+vis_waveform_unlisten (void *ctx);
+
+void
+vis_spectrum_listen (void *ctx, void (*callback)(void *ctx, ddb_audio_data_t *data));
+
+void
+vis_spectrum_unlisten (void *ctx);
#endif // __STREAMER_H