alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: "Yang, Xiaotao (X.)" <xyang25@visteon.com>
To: mailing list <alsa-devel@alsa-project.org>
Subject: [alsa-devel] about pop chime on pcm api
Date: Fri, 30 Aug 2019 08:31:25 +0000	[thread overview]
Message-ID: <AM6PR06MB49462A448954E689F9F87D37A7BD0@AM6PR06MB4946.eurprd06.prod.outlook.com> (raw)

Hi:
               Why should I call api<snd_pcm_close()> between the interval if  I want to play a wav file two times repeatly, Otherwise pop chime occurs?

Eg: (fake code as follows):
         Following codes works good.
         Pcm.open();//open pcm device
         Pcm.play(demo.wav);//set parameter and call snd_pcm_writei() to play
         Pcm.close();//close pcm device
         Pcm.open();
         Pcm.play(demo.wav);
         Pcm.close();

        But following codes works with pop chime
        Pcm.open();
        Pcm.play(demo.wav);
        Pcm.play(demo.wav);
        Pcm.close();
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel

             reply	other threads:[~2019-09-02 15:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-30  8:31 Yang, Xiaotao (X.) [this message]
2019-09-09 17:47 ` [alsa-devel] about pop chime on pcm api Takashi Iwai

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=AM6PR06MB49462A448954E689F9F87D37A7BD0@AM6PR06MB4946.eurprd06.prod.outlook.com \
    --to=xyang25@visteon.com \
    --cc=alsa-devel@alsa-project.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).