Play Telemetry on ersky9x board

This commit is contained in:
bsongis
2012-07-07 07:12:30 +00:00
parent f10b2f7b14
commit 536f032a15
9 changed files with 37 additions and 12 deletions
+12
View File
@@ -616,3 +616,15 @@ void audioEvent(uint8_t e, uint8_t f)
}
}
}
void pushPrompt(uint16_t prompt)
{
char filename[] = SYSTEM_SOUNDS_PATH "/0000.wav";
for (int8_t i=3; i>=0; i++) {
filename[sizeof(SYSTEM_SOUNDS_PATH)+i] = '0' + (prompt%10);
prompt /= 10;
}
audioQueue.playFile(filename);
}