Continue ironing out i2s pipeline

still at least one heap corruption issue, plus the i2s write method
seems to block forever :/
This commit is contained in:
jacqueline
2023-01-30 15:52:54 +11:00
parent 2cc0a38a1a
commit ef8d404b15
10 changed files with 92 additions and 58 deletions
+3 -2
View File
@@ -55,12 +55,13 @@ void RegisterListDir() {
int CmdPlayFile(int argc, char** argv) {
static const std::string usage = "usage: play [file]";
if (argc < 2 || argc > 3) {
if (argc != 2) {
std::cout << usage << std::endl;
return 1;
}
sInstance->playback_->Play(toSdPath(argv[1]));
std::string path = "/";
sInstance->playback_->Play(path + argv[1]);
return 0;
}