On Thu, 11 Sep 2003 14:17:59 +0200 (METDST), Clemens Ladisch <[EMAIL PROTECTED]> wrote:

Arve Knudsen wrote:
What's the purpose of set_start_threshold?

The stream will automatically start when the buffer has been filled up to the amount specified by start_threshold.
Ok, obviously there's something I don't understand (no surprise). I did a little test where I set start threshold to buffer size, acquire memory using snd_pcm_mmap_begin (number of returned frames equals buffer size), fill the buffer and do a snd_pcm_mmap_commit. After the commit I check the state of the card, which is SND_PCM_STATE_PREPARED (a started pcm would be in the running state?). Or do you mean actual transfer of data, by start of stream?

Back to my original goal: I did an explicit start of the pcm after filling the buffer, but the output still sounds muted for some reason. If I start the pcm *before* writing to the buffer however (like I normally would), the output is like expected. Any idea what causes this initial muting of the output?

Thanks

Arve Knudsen


------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to