diff options
author | waker <wakeroid@gmail.com> | 2013-08-04 19:32:58 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2013-08-04 19:32:58 +0200 |
commit | aa7b6ad5b0e94004a0e27007fcdf807baa34bce0 (patch) | |
tree | a87d1c43133867fb2dd5e5f45019c2d374724135 /deadbeef.h | |
parent | 3add6598c6ac4aadc29b6ce77bb99ab2bb0a163b (diff) |
added new API for querying/handling background jobs
Diffstat (limited to 'deadbeef.h')
-rw-r--r-- | deadbeef.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |