diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2009-09-14 21:45:43 +0200 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2009-09-14 21:45:43 +0200 |
commit | 54deede40a49d2947029608a6dd942302569ee1c (patch) | |
tree | 168e4acb36b92b044281c1c3e7cbb281ca349052 /plugins.c | |
parent | ebae6eba48b75ed9fdcbf8ed2b13dfa7e022ab93 (diff) |
gapless playback WIP
Diffstat (limited to 'plugins.c')
-rw-r--r-- | plugins.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -215,18 +215,18 @@ plug_playback_random (void) { float plug_playback_get_pos (void) { - if (playlist_current.duration <= 0) { + if (str_playing_song.duration <= 0) { return 0; } - return streamer_get_playpos () * 100 / playlist_current.duration; + return streamer_get_playpos () * 100 / str_playing_song.duration; } void plug_playback_set_pos (float pos) { - if (playlist_current.duration <= 0) { + if (str_playing_song.duration <= 0) { return; } - float t = pos * playlist_current.duration / 100.f; + float t = pos * str_playing_song.duration / 100.f; streamer_set_seek (t); } @@ -246,7 +246,7 @@ plug_trigger_event (int ev) { case DB_EV_SONGFINISHED: { DB_event_song_t *pev = malloc (sizeof (DB_event_song_t)); - pev->song = DB_PLAYITEM (&playlist_current); + pev->song = DB_PLAYITEM (&str_playing_song); event = DB_EVENT (pev); } break; |