Audio wav files may not be queued and repeated as others.

This commit is contained in:
bsongis
2012-07-04 10:33:17 +00:00
parent 8989ce4e6c
commit 602ff6ca46
6 changed files with 273 additions and 249 deletions
+2 -2
View File
@@ -1701,12 +1701,12 @@ void evalFunctions()
#if defined(PCBARM) && defined(SDCARD)
else if (sd->func == FUNC_PLAY_TRACK) {
if (!audioBusy()) {
if (!audioQueue.busy()) {
char lfn[32] = SOUNDS_PATH "/";
strncpy(lfn+sizeof(SOUNDS_PATH), sd->param, sizeof(sd->param));
lfn[sizeof(SOUNDS_PATH)+sizeof(sd->param)] = '\0';
strcat(lfn+sizeof(SOUNDS_PATH), SOUNDS_EXT);
playFile(lfn);
audioQueue.playFile(lfn);
}
}
else if (sd->func == FUNC_VOLUME) {