Lines Matching refs:cmd
622 static void RunCmdSetVolume(TestSample &sample, const char cmd[])
627 if (sscanf_s(cmd, "setvolume %f %f", &lvolume, &rvolume) != 0x2) {
638 static void RunCmdNext(TestSample &sample, const char cmd[])
642 if (sscanf_s(cmd, "next %d", &cnt) != 1) {
657 static void RunCmdPressurePupl(TestSample &sample, const char cmd[])
662 if (sscanf_s(cmd, "pressure_pupl %d", &cnt) != 1) {
675 static void RunCmdPressureSeek(TestSample &sample, const char cmd[])
680 if (sscanf_s(cmd, "pressure_seek %d", &cnt) != 1) {
700 static void RunCmdLoop(TestSample &sample, const char cmd[])
704 if (sscanf_s(cmd, "loop %d", &loop) != 1) {
717 static void RunCmdSpeed(TestSample &sample, const char cmd[])
720 if (sscanf_s(cmd, "speed %f", &speed) != 1) {
731 static void RunCmdSeek(TestSample &sample, const char cmd[])
734 if (sscanf_s(cmd, "seek %d", &timeMs) != 1) {
745 static void RunCmdSleep(const char cmd[])
748 if (sscanf_s(cmd, "sleep %d", &timeS) != 1) {
771 char cmd[0x40]; /* 64: Array length */
776 while ((retValue = fgets(cmd, 0x20, stdin)) != nullptr) { /* 10: use array length */
777 cmd[0x20] = '\0'; /* 10: end of string */
778 if (strncmp(cmd, "quit", 0x4) == 0) {
781 } else if (strncmp(cmd, "pause", 0x4) == 0 || strncmp(cmd, "pu", 0x2) == 0) {
783 } else if (strncmp(cmd, "replay", 0x6) == 0) {
788 } else if (strncmp(cmd, "play", 0x4) == 0 || strncmp(cmd, "pl", 0x2) == 0) {
790 } else if (strncmp(cmd, "speed", 0x5) == 0) {
791 RunCmdSpeed(sample, cmd);
792 } else if (strncmp(cmd, "seek", 0x4) == 0) {
793 RunCmdSeek(sample, cmd);
794 } else if (strncmp(cmd, "volume", 0x6) == 0) {
795 RunCmdSetVolume(sample, cmd);
796 } else if (strncmp(cmd, "show", 0x4) == 0) {
798 } else if (strncmp(cmd, "loop", 0x4) == 0) {
799 RunCmdLoop(sample, cmd);
800 } else if (strncmp(cmd, "next", 0x4) == 0) {
801 RunCmdNext(sample, cmd);
802 } else if (strncmp(cmd, "pressure_pupl", 0xd) == 0) {
803 RunCmdPressurePupl(sample, cmd);
804 } else if (strncmp(cmd, "pressure_seek", 0xd) == 0) {
805 RunCmdPressureSeek(sample, cmd);
806 } else if (strncmp(cmd, "sleep", 0x5) == 0) {
807 RunCmdSleep(cmd);
808 } else if (strncmp(cmd, "cost_test", 0x9) == 0) {
815 printf("cmd test end\n");