diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2009-12-11 21:40:13 +0100 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2009-12-11 21:40:50 +0100 |
commit | b5196b51f6858347bc1af2e243cbc1cd742110ee (patch) | |
tree | 7d8728acd1c8d5fb178269636d3abd2bd205a080 /cgme.c | |
parent | 3dfee5bd02b3f264f3ccdf7513c5078b2806196c (diff) |
alsa code converted into output plugin
Diffstat (limited to 'cgme.c')
-rw-r--r-- | cgme.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -32,7 +32,8 @@ static float duration; // of current song static int cgme_init (DB_playItem_t *it) { - if (gme_open_file (it->fname, &emu, deadbeef->playback_get_samplerate ())) { + int samplerate = deadbeef->get_output ()->samplerate (); + if (gme_open_file (it->fname, &emu, samplerate)) { return -1; } gme_mute_voices (emu, cgme_voicemask); @@ -41,7 +42,7 @@ cgme_init (DB_playItem_t *it) { gme_track_info (emu, &inf, it->tracknum); plugin.info.bps = 16; plugin.info.channels = 2; - plugin.info.samplerate = deadbeef->playback_get_samplerate (); + plugin.info.samplerate = samplerate; duration = deadbeef->pl_get_item_duration (it); reallength = inf.length; nzerosamples = 0; |