* Is calling snd_pcm_sw_params() mandatory ?
@ 2010-11-29 4:20 Raymond Yau
2010-11-29 8:14 ` Clemens Ladisch
0 siblings, 1 reply; 2+ messages in thread
From: Raymond Yau @ 2010-11-29 4:20 UTC (permalink / raw)
To: ALSA Development Mailing List
>>Twas brillig, and Raymond Yau at 24/07/10 04:51 did gyre and gimble:
>> 2010/7/15 Colin Guthrie <gmane <at> colin.guthr.ie>
>>
>>
>> Can I remove pulseaudio from mandriva 2000 ?
>>
>> I just want to test *libcanberra*-alsa alone ( i.e. *libcanberra* without
>> pulseaudio )
>>
>> when PA server abort, and *libcanberra*-pulse cannot connect to PA server ,
>>
>> Will *libcanberra* use *libcanberra*-alsa connect to PA using alsa-pulse plugin
>> ?
> Use draksound (or via Mandriva Control Center) to disable pulseaudio and
> the ALSA backend for canberra should be used instead.
> It's based on the alternatives system and the file
> /etc/sound/profiles/alsa/canberra.conf
> Col
It is strange that the alsa back end of libcanberra
(http://git.0pointer.de/?p=libcanberra.git;a=blob;f=src/alsa.c) does
not call snd_pcm_sw_params()
Does alsa-lib has any check whether the application had called
snd_pcm_sw_params() or
it provide default values for those software parameters (e.g.
start_threshold, stop_threshold)
when the application only call snd_pcm_hw_params() and snd_pcm_prepare()
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Is calling snd_pcm_sw_params() mandatory ?
2010-11-29 4:20 Is calling snd_pcm_sw_params() mandatory ? Raymond Yau
@ 2010-11-29 8:14 ` Clemens Ladisch
0 siblings, 0 replies; 2+ messages in thread
From: Clemens Ladisch @ 2010-11-29 8:14 UTC (permalink / raw)
To: Raymond Yau; +Cc: ALSA Development Mailing List
Raymond Yau wrote:
> Does alsa-lib has any check whether the application had called snd_pcm_sw_params() or
> it provide default values for those software parameters (e.g. start_threshold, stop_threshold)
The internal snd_pcm_sw_params_default() function does this:
params->tstamp_mode = SND_PCM_TSTAMP_NONE;
params->period_step = 1;
params->sleep_min = 0;
params->avail_min = pcm->period_size;
params->xfer_align = 1;
params->start_threshold = 1;
params->stop_threshold = pcm->buffer_size;
params->silence_threshold = 0;
params->silence_size = 0;
Regards,
Clemens
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-11-29 8:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-29 4:20 Is calling snd_pcm_sw_params() mandatory ? Raymond Yau
2010-11-29 8:14 ` Clemens Ladisch
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.