Re: alsa-lib: tests: Error in pause/resume

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



ajay khandelwal wrote:
> On Tue, Dec 6, 2011 at 5:24 PM, Clemens Ladisch <cladisch@xxxxxxxxxxxxxx <mailto:cladisch@xxxxxxxxxxxxxx>> wrote:
>
>     -77 is EBADFD.  This usually implies that the device is not
>     in the correct state; check snd_pcm_state().
>
>  State during this is 4 (XRUN)

Then do the usual xrun recovery.
(In theory, you should get -EPIPE for xruns, but it's possible that this
is a consequence of your unsynchronized accesses to the device state.)

>     Please note that accessing the same snd_pcm_t* device from
>     multiple threads at the same time is not supported.
>
> Is it applicable for processes too. I'm forking two process, one playing
> audio and other pausing and resuming on same thread
> In this case how should I pause/resume my audio.

>From the same thread/process.


Regards,
Clemens

------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of 
discussion for anyone considering optimizing the pricing and packaging model 
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user


[ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Free Dating Site]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

Powered by Linux