最終更新:2024-11-30 (土) 01:44:50 (8d)  

snd_pcm_sw_params_t
Top / snd_pcm_sw_params_t

snd_pcm_sw_params

  • https://github.com/alsa-project/alsa-lib/blob/master/include/sound/uapi/asound.h#L431
    struct snd_pcm_sw_params {
    	int tstamp_mode;			/* timestamp mode */
    	unsigned int period_step;
    	unsigned int sleep_min;			/* min ticks to sleep */
    	snd_pcm_uframes_t avail_min;		/* min avail frames for wakeup */
    	snd_pcm_uframes_t xfer_align;		/* obsolete: xfer size need to be a multiple */
    	snd_pcm_uframes_t start_threshold;	/* min hw_avail frames for automatic start */
    	/*
    	 * The following two thresholds alleviate playback buffer underruns; when
    	 * hw_avail drops below the threshold, the respective action is triggered:
    	 */
    	snd_pcm_uframes_t stop_threshold;	/* - stop playback */
    	snd_pcm_uframes_t silence_threshold;	/* - pre-fill buffer with silence */
    	snd_pcm_uframes_t silence_size;		/* max size of silence pre-fill; when >= boundary,
    						 * fill played area with silence immediately */
    	snd_pcm_uframes_t boundary;		/* pointers wrap point */
    	unsigned int proto;			/* protocol version */
    	unsigned int tstamp_type;		/* timestamp type (req. proto >= 2.0.12) */
    	unsigned char reserved[56];		/* reserved for future */
    };