Mercurial > audlegacy-plugins
comparison src/sexypsf/plugin.c @ 1976:5fa26178eaef
s/tuple_/aud_tuple_/g
| author | William Pitcock <nenolod@atheme.org> |
|---|---|
| date | Sun, 07 Oct 2007 00:22:59 -0500 |
| parents | 6acf1bda788b |
| children | fa9f85cebade |
comparison
equal
deleted
inserted
replaced
| 1973:f86cb7fc1d4f | 1976:5fa26178eaef |
|---|---|
| 215 *title = get_title_psf(fn); | 215 *title = get_title_psf(fn); |
| 216 sexypsf_freepsfinfo(tmp); | 216 sexypsf_freepsfinfo(tmp); |
| 217 } | 217 } |
| 218 } | 218 } |
| 219 | 219 |
| 220 static Tuple *get_tuple_psf(gchar *fn) { | 220 static Tuple *get_aud_tuple_psf(gchar *fn) { |
| 221 Tuple *tuple = NULL; | 221 Tuple *tuple = NULL; |
| 222 PSFINFO *tmp = sexypsf_getpsfinfo(fn); | 222 PSFINFO *tmp = sexypsf_getpsfinfo(fn); |
| 223 | 223 |
| 224 if (tmp->length) { | 224 if (tmp->length) { |
| 225 tuple = tuple_new_from_filename(fn); | 225 tuple = aud_tuple_new_from_filename(fn); |
| 226 tuple_associate_int(tuple, FIELD_LENGTH, NULL, tmp->length); | 226 aud_tuple_associate_int(tuple, FIELD_LENGTH, NULL, tmp->length); |
| 227 tuple_associate_string(tuple, FIELD_ARTIST, NULL, tmp->artist); | 227 aud_tuple_associate_string(tuple, FIELD_ARTIST, NULL, tmp->artist); |
| 228 tuple_associate_string(tuple, FIELD_ALBUM, NULL, tmp->game); | 228 aud_tuple_associate_string(tuple, FIELD_ALBUM, NULL, tmp->game); |
| 229 tuple_associate_string(tuple, -1, "game", tmp->game); | 229 aud_tuple_associate_string(tuple, -1, "game", tmp->game); |
| 230 tuple_associate_string(tuple, FIELD_TITLE, NULL, tmp->title); | 230 aud_tuple_associate_string(tuple, FIELD_TITLE, NULL, tmp->title); |
| 231 tuple_associate_string(tuple, FIELD_GENRE, NULL, tmp->genre); | 231 aud_tuple_associate_string(tuple, FIELD_GENRE, NULL, tmp->genre); |
| 232 tuple_associate_string(tuple, FIELD_COPYRIGHT, NULL, tmp->copyright); | 232 aud_tuple_associate_string(tuple, FIELD_COPYRIGHT, NULL, tmp->copyright); |
| 233 tuple_associate_string(tuple, FIELD_QUALITY, NULL, "sequenced"); | 233 aud_tuple_associate_string(tuple, FIELD_QUALITY, NULL, "sequenced"); |
| 234 tuple_associate_string(tuple, FIELD_CODEC, NULL, "PlayStation Audio"); | 234 aud_tuple_associate_string(tuple, FIELD_CODEC, NULL, "PlayStation Audio"); |
| 235 tuple_associate_string(tuple, -1, "console", "PlayStation"); | 235 aud_tuple_associate_string(tuple, -1, "console", "PlayStation"); |
| 236 tuple_associate_string(tuple, -1, "dumper", tmp->psfby); | 236 aud_tuple_associate_string(tuple, -1, "dumper", tmp->psfby); |
| 237 tuple_associate_string(tuple, FIELD_COMMENT, NULL, tmp->comment); | 237 aud_tuple_associate_string(tuple, FIELD_COMMENT, NULL, tmp->comment); |
| 238 | 238 |
| 239 sexypsf_freepsfinfo(tmp); | 239 sexypsf_freepsfinfo(tmp); |
| 240 } | 240 } |
| 241 | 241 |
| 242 return tuple; | 242 return tuple; |
| 243 } | 243 } |
| 244 | 244 |
| 245 static gchar *get_title_psf(gchar *fn) { | 245 static gchar *get_title_psf(gchar *fn) { |
| 246 gchar *title = NULL; | 246 gchar *title = NULL; |
| 247 Tuple *tuple = get_tuple_psf(fn); | 247 Tuple *tuple = get_aud_tuple_psf(fn); |
| 248 | 248 |
| 249 if (tuple != NULL) { | 249 if (tuple != NULL) { |
| 250 title = tuple_formatter_make_title_string(tuple, get_gentitle_format()); | 250 title = aud_tuple_formatter_make_title_string(tuple, get_gentitle_format()); |
| 251 tuple_free(tuple); | 251 aud_tuple_free(tuple); |
| 252 } | 252 } |
| 253 else | 253 else |
| 254 title = g_path_get_basename(fn); | 254 title = g_path_get_basename(fn); |
| 255 | 255 |
| 256 return title; | 256 return title; |
| 265 .stop = sexypsf_xmms_stop, | 265 .stop = sexypsf_xmms_stop, |
| 266 .pause = sexypsf_xmms_pause, | 266 .pause = sexypsf_xmms_pause, |
| 267 .seek = sexypsf_xmms_seek, | 267 .seek = sexypsf_xmms_seek, |
| 268 .get_time = sexypsf_xmms_gettime, | 268 .get_time = sexypsf_xmms_gettime, |
| 269 .get_song_info = sexypsf_xmms_getsonginfo, | 269 .get_song_info = sexypsf_xmms_getsonginfo, |
| 270 .get_song_tuple = get_tuple_psf, | 270 .get_song_tuple = get_aud_tuple_psf, |
| 271 .is_our_file_from_vfs = is_our_fd, | 271 .is_our_file_from_vfs = is_our_fd, |
| 272 .vfs_extensions = sexypsf_fmts, | 272 .vfs_extensions = sexypsf_fmts, |
| 273 }; | 273 }; |
| 274 | 274 |
| 275 InputPlugin *sexypsf_iplist[] = { &sexypsf_ip, NULL }; | 275 InputPlugin *sexypsf_iplist[] = { &sexypsf_ip, NULL }; |
