>I understand that prepare() is used to restart playout or capture from a known
>state in the driver, and wonder if it is OK to have it block until buffers
>being currently played out have completed?

are you asking if a low level driver should do this? if so, then the
answer is no. the semantics of snd_pcm_prepare() assume that it takes
effect immediately. the app should use snd_pcm_drain() if they want to
wait for existing data to be played.

>This came up because our app is experiencing -EPIPE quite often, most likely
>because real-time audio is being played out immediately without the least
>buffering by the app. Any advice is most welcome regarding this issue.

EPIPE means an xrun happened. it means your app wasn't keeping up with
the hardware.

--p


-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to