>As I reported, you get end of audio infile messages if you trie my new ALSA 
>code without the --sched option.
>I think I traced this to the following.
>After opening the incard csound first reads a block of samples, and then 
>opens the outcard. I think (but am not sure) that this stops the pcm in a 
>xrun state. Unless the scheduler is set.
>
>Is there a reason for this behaviour?

the default ALSA behaviour is to stop the PCM stream if an xrun
occurs. with --sched, SCHED_FIFO more or less guarantees that an xrun
cannot occur. 

to change this, use

   snd_pcm_sw_params_set_stop_threshold()

and set it to a value like ~0U (or some other very large number). this
tells ALSA that unless the size of xrun exceeds this value, the stream
should keep running. 

--p
_______________________________________________
[EMAIL PROTECTED] mailing list
http://www.mindrot.org/mailman/listinfo/csound-unix-dev

Reply via email to