[alsa-devel] Error in configuring playback device

Clemens Ladisch clemens at ladisch.de
Tue Mar 15 15:07:00 CET 2011


Irfan Shaikh wrote:
> Can i alwayse close the device handle before opening it if pointer to playback handle exists
> 
> if(playback_handle)
>       snd_pcm_close(playback_handle);
> snd_pcm_open(playback_handle);

This will work, as long as you ensure that playback_handle is always set
to NULL when the device is actually closed.

> SASKEN BUSINESS DISCLAIMER: ... 

*** 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.


Regards,
Clemens


More information about the Alsa-devel mailing list