return;
/* Add the track to the queue */
q = queue_add(track, 0, WHERE_END, origin_random);
- q->state = playing_random;
D(("picked %p (%s) at random", (void *)q, q->track));
queue_write();
/* Maybe a track can now be played */
if(playing_is_enabled() && config->scratch.n) {
int r = rand() * (double)config->scratch.n / (RAND_MAX + 1.0);
q = queue_add(config->scratch.s[r], who, WHERE_START, origin_scratch);
- q->state = playing_isscratch;
}
notify_scratch(playing->track, playing->submitter, who,
time(0) - playing->played);