Re: resetting an audio device?

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

 



william estrada wrote:
>    I got my alsa player code to work.  Now I need to figure out how to
> reset the audio device?  I don't want to close the device, just recycle
> it.

When the device is not running (i.e., after calling snd_pcm_drop()),
call snd_pcm_hw_free() to free the configuration; then you can set a
new configuration with the snd_pcm_hw_params* functions.


HTH
Clemens
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

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

  Powered by Linux