Skip to contentSkip to conversation

Pause functionality

DISCUSSION dv 1 participant 1 message Jun 23, 2010

lore
Share & tools
lore

dv

author
#0 lore raw

Hi,

it is stated in the documentation that I need to check with snd_pcm_hw_params_can_pause() to see if the device can pause or not. If it can, I can use snd_pcm_pause() to pause/resume.

But what if snd_pcm_hw_params_can_pause() tells me it can't pause? What does one usually do then? Continue writing to pcm, with a buffer containing zeroed samples?