![](https://secure.gravatar.com/avatar/7b62b93403a10ada0f313281a849d35a.jpg?s=120&d=mm&r=g)
20 Sep
2007
20 Sep
'07
8:47 a.m.
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