Mercurial > audlegacy-plugins
comparison src/sexypsf/plugin.c @ 1687:d158ce84fda7
Modified for Tuplez/plugin API changes.
| author | Matti Hamalainen <ccr@tnsp.org> |
|---|---|
| date | Wed, 05 Sep 2007 09:29:26 +0300 |
| parents | 3a252050736c |
| children | 75e0c0e13ed3 |
comparison
equal
deleted
inserted
replaced
| 1600:49fe2225d236 | 1687:d158ce84fda7 |
|---|---|
| 225 Tuple *tuple = NULL; | 225 Tuple *tuple = NULL; |
| 226 PSFINFO *tmp = sexypsf_getpsfinfo(fn); | 226 PSFINFO *tmp = sexypsf_getpsfinfo(fn); |
| 227 | 227 |
| 228 if (tmp->length) { | 228 if (tmp->length) { |
| 229 tuple = tuple_new_from_filename(fn); | 229 tuple = tuple_new_from_filename(fn); |
| 230 tuple_associate_int(tuple, "length", tmp->length); | 230 tuple_associate_int(tuple, FIELD_LENGTH, NULL, tmp->length); |
| 231 tuple_associate_string(tuple, "artist", tmp->artist); | 231 tuple_associate_string(tuple, FIELD_ARTIST, NULL, tmp->artist); |
| 232 tuple_associate_string(tuple, "album", tmp->game); | 232 tuple_associate_string(tuple, FIELD_ALBUM, NULL, tmp->game); |
| 233 tuple_associate_string(tuple, "game", tmp->game); | 233 tuple_associate_string(tuple, -1, "game", tmp->game); |
| 234 tuple_associate_string(tuple, "title", tmp->title); | 234 tuple_associate_string(tuple, FIELD_TITLE, NULL, tmp->title); |
| 235 tuple_associate_string(tuple, "genre", tmp->genre); | 235 tuple_associate_string(tuple, FIELD_GENRE, NULL, tmp->genre); |
| 236 tuple_associate_string(tuple, "copyright", tmp->copyright); | 236 tuple_associate_string(tuple, FIELD_COPYRIGHT, NULL, tmp->copyright); |
| 237 tuple_associate_string(tuple, "quality", "sequenced"); | 237 tuple_associate_string(tuple, FIELD_QUALITY, NULL, "sequenced"); |
| 238 tuple_associate_string(tuple, "codec", "PlayStation Audio"); | 238 tuple_associate_string(tuple, FIELD_CODEC, NULL, "PlayStation Audio"); |
| 239 tuple_associate_string(tuple, "console", "PlayStation"); | 239 tuple_associate_string(tuple, -1, "console", "PlayStation"); |
| 240 tuple_associate_string(tuple, "dumper", tmp->psfby); | 240 tuple_associate_string(tuple, -1, "dumper", tmp->psfby); |
| 241 tuple_associate_string(tuple, "comment", tmp->comment); | 241 tuple_associate_string(tuple, FIELD_COMMENT, NULL, tmp->comment); |
| 242 | 242 |
| 243 sexypsf_freepsfinfo(tmp); | 243 sexypsf_freepsfinfo(tmp); |
| 244 } | 244 } |
| 245 | 245 |
| 246 return tuple; | 246 return tuple; |
