Skip to contentSkip to conversation

resetting an audio device?

DISCUSSION william estrada 2 participants 2 messages Sep 20, 2007

lore
Share & tools
lore
#0 lore raw

Hi guys,

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. Any pointers?

Also, where are the documents for all of those helper subroutes? Like
snd_pcm_hw_params_get_period_time, snd_pcm_hw_params_any, etc.

Thanks for your time.

Signature · 4 lines
William Estrada
[email protected]
Mt-Umunhum-Wireless.net ( http://Mt-Umunhum-Wireless.net )
Ymessenger: MrUmunhum
#1 lore raw
Quoted 3 lines · william estrada

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