summaryrefslogtreecommitdiff
path: root/cgme.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-01-23 16:19:06 +0100
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-01-23 16:19:06 +0100
commit6b39d96bcbac546c103ebf5c7fbf676a71ae6ff1 (patch)
treea8caf02ceea9a2729e5ffa151fc28c567756a9fb /cgme.c
parent4ef57de537972b6c0f10da984fa78910b09c2194 (diff)
correct samplerate setting for synth-plugins
Diffstat (limited to 'cgme.c')
-rw-r--r--cgme.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cgme.c b/cgme.c
index d8154de8..e6355421 100644
--- a/cgme.c
+++ b/cgme.c
@@ -37,7 +37,7 @@ cgme_init (DB_playItem_t *it) {
DB_fileinfo_t *_info = malloc (sizeof (gme_info_t));
gme_info_t *info = (gme_info_t*)_info;
memset (_info, 0, sizeof (gme_info_t));
- int samplerate = deadbeef->get_output ()->samplerate ();
+ int samplerate = deadbeef->conf_get_int ("synth.samplerate", 48000);
if (gme_open_file (it->fname, &info->emu, samplerate)) {
plugin.free (_info);
return NULL;