recording.c
changeset 48 b94d657a9acb
parent 29 7abf6146898e
child 61 4b4c97f179da
equal deleted inserted replaced
47:63adb261de90 48:b94d657a9acb
    37 
    37 
    38     if (argc != 2) {
    38     if (argc != 2) {
    39         printf ("Usage: %s <DEVICE>\n", argv[0]);
    39         printf ("Usage: %s <DEVICE>\n", argv[0]);
    40         printf ("Example: %s /dev/dsp\n", argv[0]);
    40         printf ("Example: %s /dev/dsp\n", argv[0]);
    41         printf ("Example: %s /dev/dsp1\n", argv[0]);
    41         printf ("Example: %s /dev/dsp1\n", argv[0]);
    42         return EXIT_SUCCESS;
    42         return EXIT_FAILURE;
    43     }
    43     }
    44 
    44 
    45     fd = open (argv[1], O_RDWR);
    45     fd = open (argv[1], O_RDWR);
    46     if (fd < 0) {
    46     if (fd < 0) {
    47         perror ("open of sound device failed");
    47         perror ("open of sound device failed");