q:q1
This commit is contained in:
15
scope.cpp
15
scope.cpp
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user