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

int snd_pcm_sw_params_set_tstamp_mode ( snd_pcm_t *pcm  ATTRIBUTE_UNUSED,
snd_pcm_sw_params_t params,
snd_pcm_tstamp_t  val 
)

Set timestamp mode inside a software configuration container.

Parameters:
pcmPCM handle
paramsSoftware configuration container
valTimestamp mode
Returns:
0 otherwise a negative error code

Definition at line 5437 of file pcm.c.

{
      assert(pcm && params);
      if (CHECK_SANITY(val > SND_PCM_TSTAMP_LAST)) {
            SNDMSG("invalid tstamp_mode value %d", val);
            return -EINVAL;
      }
      params->tstamp_mode = val;
      return 0;
}

Generated by  Doxygen 1.6.0   Back to index