Mercurial > audlegacy-plugins
comparison src/sexypsf/plugin.c @ 2128:feb0e916f8bc
adapted SexyPSF timeout to the method nenolod introduced in UPSE
author | mf0102 <0102@gmx.at> |
---|---|
date | Wed, 24 Oct 2007 15:46:20 +0200 |
parents | 2f2ffbc2d04d |
children | 4d6045c20cc5 |
comparison
equal
deleted
inserted
replaced
2127:a40d6e66f199 | 2128:feb0e916f8bc |
---|---|
111 seek = 0; | 111 seek = 0; |
112 continue; | 112 continue; |
113 } | 113 } |
114 | 114 |
115 // timeout at the end of a file | 115 // timeout at the end of a file |
116 sleep(4); | 116 while (playback->output->buffer_playing()) |
117 g_usleep(10000); | |
118 | |
117 break; | 119 break; |
118 } | 120 } |
119 | 121 |
120 playback->output->close_audio(); | 122 playback->output->close_audio(); |
121 if (!(stop)) nextsong = TRUE; | 123 if (!(stop)) nextsong = TRUE; |
220 Tuple *tuple = NULL; | 222 Tuple *tuple = NULL; |
221 PSFINFO *tmp = sexypsf_getpsfinfo(fn); | 223 PSFINFO *tmp = sexypsf_getpsfinfo(fn); |
222 | 224 |
223 if (tmp->length) { | 225 if (tmp->length) { |
224 tuple = aud_tuple_new_from_filename(fn); | 226 tuple = aud_tuple_new_from_filename(fn); |
225 aud_tuple_associate_int(tuple, FIELD_LENGTH, NULL, tmp->length); | 227 aud_tuple_associate_int(tuple, FIELD_LENGTH, NULL, tmp->length); |
226 aud_tuple_associate_string(tuple, FIELD_ARTIST, NULL, tmp->artist); | 228 aud_tuple_associate_string(tuple, FIELD_ARTIST, NULL, tmp->artist); |
227 aud_tuple_associate_string(tuple, FIELD_ALBUM, NULL, tmp->game); | 229 aud_tuple_associate_string(tuple, FIELD_ALBUM, NULL, tmp->game); |
228 aud_tuple_associate_string(tuple, -1, "game", tmp->game); | 230 aud_tuple_associate_string(tuple, -1, "game", tmp->game); |
229 aud_tuple_associate_string(tuple, FIELD_TITLE, NULL, tmp->title); | 231 aud_tuple_associate_string(tuple, FIELD_TITLE, NULL, tmp->title); |
230 aud_tuple_associate_string(tuple, FIELD_GENRE, NULL, tmp->genre); | 232 aud_tuple_associate_string(tuple, FIELD_GENRE, NULL, tmp->genre); |
231 aud_tuple_associate_string(tuple, FIELD_COPYRIGHT, NULL, tmp->copyright); | 233 aud_tuple_associate_string(tuple, FIELD_COPYRIGHT, NULL, tmp->copyright); |
232 aud_tuple_associate_string(tuple, FIELD_QUALITY, NULL, "sequenced"); | 234 aud_tuple_associate_string(tuple, FIELD_QUALITY, NULL, "sequenced"); |
233 aud_tuple_associate_string(tuple, FIELD_CODEC, NULL, "PlayStation Audio"); | 235 aud_tuple_associate_string(tuple, FIELD_CODEC, NULL, "PlayStation Audio"); |