summaryrefslogtreecommitdiff
path: root/deadbeef.h
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2013-08-04 19:32:58 +0200
committerGravatar waker <wakeroid@gmail.com>2013-08-04 19:32:58 +0200
commitaa7b6ad5b0e94004a0e27007fcdf807baa34bce0 (patch)
treea87d1c43133867fb2dd5e5f45019c2d374724135 /deadbeef.h
parent3add6598c6ac4aadc29b6ce77bb99ab2bb0a163b (diff)
added new API for querying/handling background jobs
Diffstat (limited to 'deadbeef.h')
-rw-r--r--deadbeef.h8
1 files changed, 8 insertions, 0 deletions
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