Hi,

Our jack OSS (or Boomer) driver uses a 2 threads model (one used for  
reading and one used for writing).  In duplex mode, we typically open  
the input and output devices separately, then use blocking "read" on  
input side and blocking "write" on output side. Both threads are  
synched using semaphores so that we know when to trigger a "server  
cycle", that is when input have been read and ouput have been written.

In some cases and some hardware (like RME MADI card), it seems record  
in not correctly started and the input stream shows some missing  
frames (like 128 frames of 0 value) or duplicated frames (like 128  
frames repeated twice.)

It seems that the SNDCTL_DSP_SETTRIGGER ioctl (http:// 
manuals.opensound.com/developer/SNDCTL_DSP_SETTRIGGER.html) should be  
used for that. Is it still the case with OSS 4.0?

Are the following code example still correct?

http://manuals.opensound.com/developer/fulldup.c.html#LOC79

http://manuals.opensound.com/developer/iosync.c.html#LOC16

Any advice how to use SNDCTL_DSP_SETTRIGGER correctly?

Thanks

Stephane letz


_______________________________________________
oss-devel mailing list
oss-devel@mailman.opensound.com
http://mailman.opensound.com/mailman/listinfo/oss-devel

Reply via email to