commit 052c9574ec55a58fa39b565308715a6e3f877385
parent a0511b2a441b380872a6bcafee524323fa24e5c7
Author: sin <sin@2f30.org>
Date: Fri, 26 Dec 2014 23:47:49 +0000
Default to repeat mode for now
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/sad.c b/sad.c
@@ -84,6 +84,10 @@ playaudio(void)
if ((nbytes = s->decoder->decode(buf, sizeof(buf))) <= 0) {
s->decoder->close();
s->state = NONE;
+ /* default to a repeat/cycle through mode */
+ s = getnextsong();
+ s->state = PREPARE;
+ putcursong(s);
} else {
output->play(buf, nbytes);
}