summaryrefslogtreecommitdiff
path: root/plugins/sid
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2011-04-29 22:38:31 +0200
committerGravatar waker <wakeroid@gmail.com>2011-04-29 22:38:31 +0200
commit20627955d1184b5f07b8f7910a59f15cdc4802c8 (patch)
treeafc2111b9d3be287d3e82dcc54b23f84c88e4183 /plugins/sid
parentcec677f6022983afbc144a52eff8a719a1086577 (diff)
changed some API entry points to make it possible working with specific playlists, and not just the current one
Diffstat (limited to 'plugins/sid')
-rw-r--r--plugins/sid/csid.cpp4
-rw-r--r--plugins/sid/csid.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/sid/csid.cpp b/plugins/sid/csid.cpp
index 20293812..569c1083 100644
--- a/plugins/sid/csid.cpp
+++ b/plugins/sid/csid.cpp
@@ -444,7 +444,7 @@ convstr (const char* str) {
}
extern "C" DB_playItem_t *
-csid_insert (DB_playItem_t *after, const char *fname) {
+csid_insert (ddb_playlist_t *plt, DB_playItem_t *after, const char *fname) {
trace ("inserting %s\n", fname);
sldb_load ();
SidTune *tune;
@@ -569,7 +569,7 @@ csid_insert (DB_playItem_t *after, const char *fname) {
deadbeef->pl_set_item_duration (it, length);
deadbeef->pl_add_meta (it, ":FILETYPE", "SID");
- after = deadbeef->pl_insert_item (after, it);
+ after = deadbeef->plt_insert_item (plt, after, it);
deadbeef->pl_item_unref (it);
}
}
diff --git a/plugins/sid/csid.h b/plugins/sid/csid.h
index 66ad0ff5..e40f8c69 100644
--- a/plugins/sid/csid.h
+++ b/plugins/sid/csid.h
@@ -28,7 +28,7 @@ int csid_init (DB_fileinfo_t *_info, DB_playItem_t *it);
void csid_free (DB_fileinfo_t *);
int csid_read (DB_fileinfo_t *, char *bytes, int size);
int csid_seek (DB_fileinfo_t *, float time);
-DB_playItem_t *csid_insert (DB_playItem_t *after, const char *fname);
+DB_playItem_t *csid_insert (ddb_playlist_t *plt, DB_playItem_t *after, const char *fname);
int csid_numvoices (DB_fileinfo_t *);
void csid_mutevoice (DB_fileinfo_t *, int voice, int mute);
int csid_start (void);