summaryrefslogtreecommitdiff
path: root/deadbeef.h
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2011-05-04 21:36:21 +0200
committerGravatar waker <wakeroid@gmail.com>2011-05-04 21:37:58 +0200
commit7710ed414acf8ecdf1a54bd58a7a26a696ee199f (patch)
tree8bce68b491f487d6550b649b2188bb3efe6437e0 /deadbeef.h
parent745fa29c0fe4860a67da698c17057d687f1b9bc7 (diff)
moved playtime and started_timestamp from playitem to streamer global variables;
playtime and started_timestamp are now passed in track event structures; fixed few lastfm submission and event-handling bugs; cleaned out old event sending helper functions
Diffstat (limited to 'deadbeef.h')
-rw-r--r--deadbeef.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/deadbeef.h b/deadbeef.h
index 5c8f7b82..23d7c9fe 100644
--- a/deadbeef.h
+++ b/deadbeef.h
@@ -120,8 +120,6 @@ typedef struct DB_playItem_s {
int startsample; // start sample of track, or -1 for auto
int endsample; // end sample of track, or -1 for auto
int shufflerating; // sort order for shuffle mode
- float playtime; // actual playback time of this track in seconds
- time_t started_timestamp; // result of calling time(NULL)
} ddb_playItem_t;
typedef ddb_playItem_t DB_playItem_t;
@@ -212,12 +210,16 @@ typedef struct {
typedef struct {
ddb_event_t ev;
DB_playItem_t *track;
+ float playtime; // for SONGFINISHED event -- for how many seconds track was playing
+ time_t started_timestamp; // result of calling time(NULL) on playback start
} ddb_event_track_t;
typedef struct {
ddb_event_t ev;
DB_playItem_t *from;
DB_playItem_t *to;
+ float playtime; // for SONGCHANGED event -- for how many seconds prev track was playing
+ time_t started_timestamp; // result of calling time(NULL) on playback start
} ddb_event_trackchange_t;
typedef struct {