about pop chime on pcm api

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux