All of lore.kernel.org
 help / color / mirror / Atom feed
From: James Courtier-Dutton <James@superbug.demon.co.uk>
To: Jaroslav Kysela <perex@perex.cz>
Cc: "alsa-devel@lists.sourceforge.net" <alsa-devel@lists.sourceforge.net>
Subject: Re: problems: flushing during snd_pcm_wait()
Date: Fri, 11 Oct 2002 23:23:55 +1000	[thread overview]
Message-ID: <3DA6D0EB.1010509@superbug.demon.co.uk> (raw)
In-Reply-To: Pine.LNX.4.33.0210111458330.1244-100000@pnote.perex-int.cz

>
>
>>>      
>>>
>>Thankyou, I will use snd_pcm_drop(), but as a side note, what actually 
>>does "snd_pcm_reset()" do.
>>Just resetting delay to 0 does not make much sense to me.
>>    
>>
>
>It drops all samples in the ring buffer (thus reseting delay to 0). Note 
>that everybody are welcome to improve the current documentation 
>(preferably with patches).
>
>						Jaroslav
>  
>
Ok, so snd_pcm_drop drops all samples in the buffer, so I would assume 
this sets the delay to 0.
so snd_pcm_reset drops all sample in the buffer, so as you say is sets 
delay to 0.
So my question is "What is the difference between the 2 functions?"

Cheers
James





-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

  reply	other threads:[~2002-10-11 13:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-10 15:25 problems: flushing during snd_pcm_wait() James Courtier-Dutton
2002-10-11 11:52 ` Takashi Iwai
2002-10-11 12:50   ` James Courtier-Dutton
2002-10-11 13:00     ` Jaroslav Kysela
2002-10-11 13:23       ` James Courtier-Dutton [this message]
2002-10-11 14:22         ` Jaroslav Kysela

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3DA6D0EB.1010509@superbug.demon.co.uk \
    --to=james@superbug.demon.co.uk \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=perex@perex.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.