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 written

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 isn't actually

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 test

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 need more info

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

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, 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? For example, if

[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