This commit is contained in:
Mark Allyn
2026-11-14 10:39:12 -08:00
parent fe87dc6ec8
commit 826ca13fe1
60 changed files with 25973 additions and 6 deletions

View File

@@ -62,8 +62,19 @@ int main(int argc, char *argv[])
int *return_spectrum_buffer;
printf ("window is %d by %d\n", x_window_size, y_window_size);
// char *device_name = (char *)"plughw:CARD=Camcra,DEV=0";
char *device_name = (char *)"plughw:CARD=CMTECK,DEV=0";
// Audio device: use argv[3] if given, otherwise the first USB capture device
char *device_name = input_our_audio_device_name;
if (argc > 3)
{
snprintf(device_name, sizeof(input_our_audio_device_name), "%s", argv[3]);
}
else if (alsa_read_class::find_usb_capture_device(device_name,
sizeof(input_our_audio_device_name)) != 0)
{
printf("no USB audio capture device found\n");
exit(1);
}
printf("using audio device %s\n", device_name);
// returns zero on success else non-zero