Sudeept Prusti wrote:
Can anyone educate me which alsa-lib API used for pause and resume. I have a minimal alsa code for pcm playback and i need the needed API for test pause and resume feature on pcm playback.
First, to check whether the device supports pausing, one should call snd_pcm_hw_params_can_pause() after calling snd_pcm_hw_params(). However, in your case, you already know this for your device.
To pause or resume a stream, call snd_pcm_pause(pcm, 1) or ...0).
HTH Clemens
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments contained in it.
*** DISCLAIMER *** This e-mail contains public information intended for any subscriber of this mailing list and for anybody else who bothers to read it; it will be copied, disclosed and distributed to the public. If you think you are not the intended recipient, please commit suicide immediately. These terms apply also to any e-mails quoted in, referenced from, or answering this e-mail, and supersede any disclaimers in those e-mails. Additionally, disclaimers in those e-mails will incur legal processing fees of $42 per line; you have agreed to this by reading this disclaimer. *** END OF DISCLAIMER ***