Logo Search packages:      
Sourcecode: alsa-lib version File versions  Download package

int snd_pcm_async ( snd_pcm_t pcm,
int  sig,
pid_t  pid 
)

set async mode

Parameters:
pcmPCM handle
sigSignal to raise: < 0 disable, 0 default (SIGIO)
pidProcess ID to signal: 0 current
Returns:
0 on success otherwise a negative error code

A signal is raised every period.

Definition at line 711 of file pcm.c.

Referenced by snd_async_add_pcm_handler(), and snd_async_del_handler().

{
      assert(pcm);
      if (sig == 0)
            sig = SIGIO;
      if (pid == 0)
            pid = getpid();
      return pcm->ops->async(pcm->op_arg, sig, pid);
}

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index