snd_pcm_wait won't return

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello alsa-users list!

I am using the alsa-lib in one of my projects and within this project,
there is a call for snd_pcm_wait() on a machine, that plays sound. The
call itself looks like this:

snd_pcm_wait( pcm_handle, 1000 );

A few steps before, I had the timeout set to unlimited (-1), which
sometimes did not return at all. Now, it sometimes returns after the
timeout, but in result I cannot write anything to the soundcard anymore.
This error is reproducable if there are many underruns in a row. Since
this program runs in a network environment and receives its data from a
datastream, I sometimes cannot avoid those underruns.

So, what could be the error, that leads to alsa not responding anymore?
I can only revitalize the system after such an error by rebooting the
whole system (well, at least I did not find another solution like
snd_pcm_prepare or snd_pcm_recover).

Which additional informations do you need? What is there, that I can
provide in addition? Could this be an alsa-bug?

Kind regards,
Dennis

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user


[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux