under-runs and prepare()
Hi all,
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?
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.
Guilhem.
__________________________________________________
Yahoo! - We Remember
9-11: A tribute to the more than 3,000 lives lost
http://dir.remember.yahoo.com/tribute
-------------------------------------------------------
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
Quoted 3 lines
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.
Quoted 3 lines
This came up because our app is experiencing
-EPIPEquite 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
At Tue, 10 Sep 2002 09:05:14 -0700 (PDT),
Quoted 10 lines · Guilhem Tardy
Hi all,
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?This came up because our app is experiencing
-EPIPEquite 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.
the problem is that your app got xrun.
it has nothing to do with prepare(). prepare() is called because the app became out of control.
perhaps raising the priority of the audio thread will improve this response, but it of course depends on the basic design of the program itself.
ciao,
Takashi
-------------------------------------------------------
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