Csound Csound-dev Csound-tekno Search About

[CSOUND-DEV:4208] Fix: PortAudio device number conflicts with --sched

Date2004-03-01 00:53
Fromstevenyi
Subject[CSOUND-DEV:4208] Fix: PortAudio device number conflicts with --sched
Hi all,

For linux, I noticed that using --sched with -o dac works fine but using
--sched with "-o dac1" or "-o devaudio1" will give an error that sched
requires the -o dac or -o devaudio.  I've changed this code in
Top/main.c:

      for (i = 1; i <= (argc - 2); i++) {
        if (!(strcmp (argv[i], "-o")) &&                    /* check
if     */
            (!(strncmp (argv[i + 1], "dac", 3)) ||              /*
output is    */
             !(strncmp (argv[i + 1], "devaudio", 8))))          /* audio
device */
          rtmode |= 2;
      }

to use strncmp instead of strcmp when looking for dac or devaudio.

steven