Re: [Alsa-devel] snd_pcm_wait() More details required.

2004-03-24 Thread Jaroslav Kysela
On Wed, 24 Mar 2004, Clemens Ladisch wrote: > Jaroslav Kysela wrote: > > On Tue, 23 Mar 2004, Clemens Ladisch wrote: > > > The following test program shows strange behaviour: > > > > Thanks. It's fixed in CVS now. > > The second problem persists, i.e., snd_pcm_wait() returns although the > pcm is

Re: [Alsa-devel] snd_pcm_wait() More details required.

2004-03-24 Thread Clemens Ladisch
Jaroslav Kysela wrote: > On Tue, 23 Mar 2004, Clemens Ladisch wrote: > > The following test program shows strange behaviour: > > Thanks. It's fixed in CVS now. The second problem persists, i.e., snd_pcm_wait() returns although the pcm isn't actually ready: $ ./waittest dmix:hw:0 12000 frames writ

Re: [Alsa-devel] snd_pcm_wait() More details required.

2004-03-23 Thread Jaroslav Kysela
On Tue, 23 Mar 2004, Clemens Ladisch wrote: > Jaroslav Kysela wrote: > > > On Mon, 22 Mar 2004, James Courtier-Dutton wrote: > > > > > My current tests were not using the resampler. i.e. app using 48k, sound > > > card using 48k. I will try some tests that would use the resampler. > > > > Then I

Re: [Alsa-devel] snd_pcm_wait() More details required.

2004-03-23 Thread Clemens Ladisch
Jaroslav Kysela wrote: > On Mon, 22 Mar 2004, James Courtier-Dutton wrote: > > > My current tests were not using the resampler. i.e. app using 48k, sound > > card using 48k. I will try some tests that would use the resampler. > > Then I need more info how I can reproduce the bug. The following te

Re: [Alsa-devel] snd_pcm_wait() More details required.

2004-03-22 Thread Jaroslav Kysela
On Mon, 22 Mar 2004, James Courtier-Dutton wrote: > Jaroslav Kysela wrote: > >> > >>So, when is a PCM ready? > >>If a PCM is already in SND_PCM_STATE_RUNNING, when is snd_pcm_wait() > >>supposed to return ? > > > > > > When avail >= avail_min. > > 1) Does this depend on period size in any way?

Re: [Alsa-devel] snd_pcm_wait() More details required.

2004-03-22 Thread James Courtier-Dutton
Jaroslav Kysela wrote: So, when is a PCM ready? If a PCM is already in SND_PCM_STATE_RUNNING, when is snd_pcm_wait() supposed to return ? When avail >= avail_min. 1) Does this depend on period size in any way? For example, if period size is 6000 frames, and I set avail_min to 2000 frames, will

Re: [Alsa-devel] snd_pcm_wait() More details required.

2004-03-22 Thread Jaroslav Kysela
On Mon, 22 Mar 2004, Clemens Ladisch wrote: > > I have discovered a problem with xine when using it. I have done a work > > around in xine so that dmix now works in xine. I think that my > > assumptions regarding snd_pcm_wait() might have been wrong, so I want to > > get accurate details from your

Re: [Alsa-devel] snd_pcm_wait() More details required.

2004-03-22 Thread Clemens Ladisch
James Courtier-Dutton wrote: > I need more details on exactly what snd_pcm_wait() is supposed to do. > The documentation on the www.alsa-project.org gives: - > Wait for a PCM to become ready. > ... > So, when is a PCM ready? When you can read/write some data without blocking, i.e., avail >= avail_

Re: [Alsa-devel] snd_pcm_wait() More details required.

2004-03-22 Thread Jaroslav Kysela
yOn Sun, 21 Mar 2004, James Courtier-Dutton wrote: > I need more details on exactly what snd_pcm_wait() is supposed to do. > The documentation on the www.alsa-project.org gives: - > Wait for a PCM to become ready. > > Parameters: > pcm PCM handle > timeout maximum time in

[Alsa-devel] snd_pcm_wait() More details required.

2004-03-21 Thread James Courtier-Dutton
I need more details on exactly what snd_pcm_wait() is supposed to do. The documentation on the www.alsa-project.org gives: - Wait for a PCM to become ready. Parameters: pcm PCM handle timeout maximum time in milliseconds to wait Returns: a positive value on success otherwise