summaryrefslogtreecommitdiff
path: root/plugins/dumb
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <waker@users.sourceforge.net>2014-04-15 17:15:29 +0200
committerGravatar Alexey Yakovenko <waker@users.sourceforge.net>2014-04-15 17:15:29 +0200
commitf2caa4b84f96f6f025c3b8404f38857cda22ddd9 (patch)
treed6968d583db79fd3b8fd053486439d606249264a /plugins/dumb
parent88e8ab7d215c06ad63998a6f12817b3dbbe765e8 (diff)
[dumb] added option to configure internal volume
Diffstat (limited to 'plugins/dumb')
-rw-r--r--plugins/dumb/cdumb.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/dumb/cdumb.c b/plugins/dumb/cdumb.c
index 7cf4e24a..017b850b 100644
--- a/plugins/dumb/cdumb.c
+++ b/plugins/dumb/cdumb.c
@@ -126,6 +126,8 @@ cdumb_startrenderer (DB_fileinfo_t *_info) {
dumb_it_set_resampling_quality (itsr, q);
dumb_it_set_xm_speed_zero_callback (itsr, &dumb_it_callback_terminate, NULL);
dumb_it_set_global_volume_zero_callback (itsr, &dumb_it_callback_terminate, NULL);
+
+ dumb_it_sr_set_global_volume (itsr, deadbeef->conf_get_int ("dumb.globalvolume", 64));
return 0;
}
@@ -889,6 +891,7 @@ cgme_stop (void) {
static const char settings_dlg[] =
"property \"Resampling quality (0..2, higher is better)\" entry dumb.resampling_quality 2;\n"
"property \"8-bit output (default is 16)\" checkbox dumb.8bitoutput 0;\n"
+ "property \"Internal DUMB volume (0..128)\" spinbtn[0,128,16] dumb.globalvolume 64;\n"
;
// define plugin interface