From aa7b6ad5b0e94004a0e27007fcdf807baa34bce0 Mon Sep 17 00:00:00 2001 From: waker Date: Sun, 4 Aug 2013 19:32:58 +0200 Subject: added new API for querying/handling background jobs --- deadbeef.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'deadbeef.h') diff --git a/deadbeef.h b/deadbeef.h index 60294d9d..b9d88a12 100644 --- a/deadbeef.h +++ b/deadbeef.h @@ -795,9 +795,17 @@ typedef struct { // data size must be float[DDB_AUDIO_MEMORY_FRAMES] void (*audio_get_waveform_data) (int type, float *data); + // 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); int (*audio_is_mute) (void); + // this is useful for prompting a user when he attempts to quit the player + // while something is working in background, e.g. the Converter, + // and let him finish or cancel the background jobs. + void (*background_job_increment) (void); + void (*background_job_decrement) (void); + int (*have_background_jobs) (void); } DB_functions_t; // NOTE: an item placement must be selected like this -- cgit v1.2.3