From 6b39d96bcbac546c103ebf5c7fbf676a71ae6ff1 Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Sat, 23 Jan 2010 16:19:06 +0100 Subject: correct samplerate setting for synth-plugins --- plugins/adplug/adplug-db.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/adplug') diff --git a/plugins/adplug/adplug-db.cpp b/plugins/adplug/adplug-db.cpp index 6d6cb35c..17b6442c 100644 --- a/plugins/adplug/adplug-db.cpp +++ b/plugins/adplug/adplug-db.cpp @@ -52,7 +52,7 @@ adplug_init (DB_playItem_t *it) { // prepare to decode the track // return -1 on failure - int samplerate = deadbeef->get_output ()->samplerate (); + int samplerate = deadbeef->conf_get_int ("synth.samplerate", 48000); int bps = deadbeef->get_output ()->bitspersample (); int channels = 2; opl = new CEmuopl (samplerate, true, channels == 2); -- cgit v1.2.3