+ } else if(strcmp(buffer, "stop") == 0) {
+ glk_put_string("Stopping sound.\n");
+ glk_schannel_stop(sc);
+ } else if(strcmp(buffer, "repeat") == 0) {
+ glk_put_string("Setting repeat to ");
+ if(repeat == 1) {
+ glk_put_string("TWICE.\n");
+ repeat = 2;
+ } else if(repeat == 2) {
+ glk_put_string("INFINITE.\n");
+ repeat = -1;
+ } else if(repeat == -1) {
+ glk_put_string("DON'T PLAY.\n");
+ repeat = 0;
+ } else if(repeat == 0) {
+ glk_put_string("ONCE.\n");
+ repeat = 1;
+ }