It looks like the other approach worked. It seems like the fewer ioctl calls I make, the less failure I run into with duplex audio. Right now I only use them for setting the channels, the format, and the sample rate; everything else I leave well alone and it seems to be working fine. Duplexing audio over the same sound card is working fine, no dropouts; I think that xruns will start showing up when I try to duplex audio across different cards from clock drift, but the only real permanent solution to that would be syncing the clocks.
Thanks! On Fri, Jan 22, 2010 at 12:58 AM, Hannu Savolainen <ha...@opensound.com> wrote: > Sherwin Soltani wrote: > >> >> Another question: if I am using two different nodes which both refer >> to the same device for input and output, for example: >> >> reading from /dev/oss/oss_envy240/pcmin0 >> writing to /dev/oss/oss_envy240/pcm1 >> >> Do I need to set the device into duplex mode with SNDCTL_DSP_SETDUPLEX >> because they are on the same physical card? > > SNDCTL_DSP_SETDUPLEX is not applicaple in this case. > > Best regards, > > Hannu > _______________________________________________ > oss-devel mailing list > oss-devel@mailman.opensound.com > http://mailman.opensound.com/mailman/listinfo/oss-devel > -- Sherwin A. Soltani, NREMT-B WYBC Student Engineer _______________________________________________ oss-devel mailing list oss-devel@mailman.opensound.com http://mailman.opensound.com/mailman/listinfo/oss-devel