Loading media/libaaudio/examples/input_monitor/src/input_monitor.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -61,7 +61,7 @@ int main(int argc, const char **argv) // in a buffer if we hang or crash. setvbuf(stdout, nullptr, _IONBF, (size_t) 0); printf("%s - Monitor input level using AAudio V0.1.1\n", argv[0]); printf("%s - Monitor input level using AAudio read, V0.1.2\n", argv[0]); argParser.setFormat(REQUIRED_FORMAT); if (argParser.parseArgs(argc, argv)) { Loading media/libaaudio/examples/input_monitor/src/input_monitor_callback.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -41,7 +41,7 @@ int main(int argc, char **argv) // Make printf print immediately so that debug info is not stuck // in a buffer if we hang or crash. setvbuf(stdout, nullptr, _IONBF, (size_t) 0); printf("%s - Display audio input using an AAudio callback\n", argv[0]); printf("%s - Display audio input using an AAudio callback, V0.1.2\n", argv[0]); result = recorder.open(2, 48000, AAUDIO_FORMAT_PCM_I16, SimpleRecorderDataCallbackProc, SimpleRecorderErrorCallbackProc, &myData); Loading media/libaaudio/examples/utils/AAudioArgsParser.h +5 −1 Original line number Diff line number Diff line Loading @@ -150,6 +150,9 @@ public: setChannelCount(atoi(&arg[2])); break; case 'd': setDeviceId(atoi(&arg[2])); break; case 's': mDurationSeconds = atoi(&arg[2]); break; case 'm': { Loading Loading @@ -202,7 +205,8 @@ public: printf(" Default values are UNSPECIFIED unless otherwise stated.\n"); printf(" -b{bufferCapacity} frames\n"); printf(" -c{channels} for example 2 for stereo\n"); printf(" -d{duration} in seconds, default is %d\n", DEFAULT_DURATION_SECONDS); printf(" -d{deviceId} default is %d\n", AAUDIO_UNSPECIFIED); printf(" -s{duration} in seconds, default is %d\n", DEFAULT_DURATION_SECONDS); printf(" -m{0|1|2|3} set MMAP policy\n"); printf(" 0 = _UNSPECIFIED, default\n"); printf(" 1 = _NEVER\n"); Loading media/libaaudio/examples/write_sine/src/write_sine.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -57,7 +57,7 @@ int main(int argc, const char **argv) // in a buffer if we hang or crash. setvbuf(stdout, nullptr, _IONBF, (size_t) 0); printf("%s - Play a sine wave using AAudio V0.1.1\n", argv[0]); printf("%s - Play a sine wave using AAudio V0.1.2\n", argv[0]); if (argParser.parseArgs(argc, argv)) { return EXIT_FAILURE; Loading media/libaaudio/examples/write_sine/src/write_sine_callback.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -40,7 +40,7 @@ int main(int argc, const char **argv) // in a buffer if we hang or crash. setvbuf(stdout, nullptr, _IONBF, (size_t) 0); printf("%s - Play a sine sweep using an AAudio callback V0.1.2\n", argv[0]); printf("%s - Play a sine sweep using an AAudio callback V0.1.3\n", argv[0]); myData.schedulerChecked = false; myData.forceUnderruns = false; // set true to test AAudioStream_getXRunCount() Loading Loading
media/libaaudio/examples/input_monitor/src/input_monitor.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -61,7 +61,7 @@ int main(int argc, const char **argv) // in a buffer if we hang or crash. setvbuf(stdout, nullptr, _IONBF, (size_t) 0); printf("%s - Monitor input level using AAudio V0.1.1\n", argv[0]); printf("%s - Monitor input level using AAudio read, V0.1.2\n", argv[0]); argParser.setFormat(REQUIRED_FORMAT); if (argParser.parseArgs(argc, argv)) { Loading
media/libaaudio/examples/input_monitor/src/input_monitor_callback.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -41,7 +41,7 @@ int main(int argc, char **argv) // Make printf print immediately so that debug info is not stuck // in a buffer if we hang or crash. setvbuf(stdout, nullptr, _IONBF, (size_t) 0); printf("%s - Display audio input using an AAudio callback\n", argv[0]); printf("%s - Display audio input using an AAudio callback, V0.1.2\n", argv[0]); result = recorder.open(2, 48000, AAUDIO_FORMAT_PCM_I16, SimpleRecorderDataCallbackProc, SimpleRecorderErrorCallbackProc, &myData); Loading
media/libaaudio/examples/utils/AAudioArgsParser.h +5 −1 Original line number Diff line number Diff line Loading @@ -150,6 +150,9 @@ public: setChannelCount(atoi(&arg[2])); break; case 'd': setDeviceId(atoi(&arg[2])); break; case 's': mDurationSeconds = atoi(&arg[2]); break; case 'm': { Loading Loading @@ -202,7 +205,8 @@ public: printf(" Default values are UNSPECIFIED unless otherwise stated.\n"); printf(" -b{bufferCapacity} frames\n"); printf(" -c{channels} for example 2 for stereo\n"); printf(" -d{duration} in seconds, default is %d\n", DEFAULT_DURATION_SECONDS); printf(" -d{deviceId} default is %d\n", AAUDIO_UNSPECIFIED); printf(" -s{duration} in seconds, default is %d\n", DEFAULT_DURATION_SECONDS); printf(" -m{0|1|2|3} set MMAP policy\n"); printf(" 0 = _UNSPECIFIED, default\n"); printf(" 1 = _NEVER\n"); Loading
media/libaaudio/examples/write_sine/src/write_sine.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -57,7 +57,7 @@ int main(int argc, const char **argv) // in a buffer if we hang or crash. setvbuf(stdout, nullptr, _IONBF, (size_t) 0); printf("%s - Play a sine wave using AAudio V0.1.1\n", argv[0]); printf("%s - Play a sine wave using AAudio V0.1.2\n", argv[0]); if (argParser.parseArgs(argc, argv)) { return EXIT_FAILURE; Loading
media/libaaudio/examples/write_sine/src/write_sine_callback.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -40,7 +40,7 @@ int main(int argc, const char **argv) // in a buffer if we hang or crash. setvbuf(stdout, nullptr, _IONBF, (size_t) 0); printf("%s - Play a sine sweep using an AAudio callback V0.1.2\n", argv[0]); printf("%s - Play a sine sweep using an AAudio callback V0.1.3\n", argv[0]); myData.schedulerChecked = false; myData.forceUnderruns = false; // set true to test AAudioStream_getXRunCount() Loading