diff options
author | waker <wakeroid@gmail.com> | 2009-08-30 14:04:47 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2009-08-30 14:04:47 +0200 |
commit | 5aa2deafec6aa8b75eb83a026f3cb5a097dddc05 (patch) | |
tree | ff2e2b2e89c09201ab8e19f536af157f6d0cb604 /plugins.c | |
parent | 5b80da021e24ea86bfaf299daeb22a5c2889776c (diff) |
volumebar will redraw on plugin volume change
Diffstat (limited to 'plugins.c')
-rw-r--r-- | plugins.c | 19 |
1 files changed, 17 insertions, 2 deletions
@@ -79,12 +79,27 @@ DB_functions_t deadbeef_api = { // cuesheet support .pl_insert_cue = (DB_playItem_t *(*)(DB_playItem_t *, const char *, struct DB_decoder_s *, const char *))pl_insert_cue, // volume control - .volume_set_db = volume_set_db, + .volume_set_db = plug_volume_set_db, .volume_get_db = volume_get_db, - .volume_set_amp = volume_set_amp, + .volume_set_amp = plug_volume_set_amp, .volume_get_amp = volume_get_amp, }; +void +volumebar_notify_changed (void); + +void +plug_volume_set_db (float db) { + volume_set_db (db); + volumebar_notify_changed (); +} + +void +plug_volume_set_amp (float amp) { + volume_set_amp (amp); + volumebar_notify_changed (); +} + #define MAX_DECODERS 50 DB_decoder_t *g_decoders[MAX_DECODERS+1]; |