Home
last modified time | relevance | path

Searched refs:swparams (Results 1 – 16 of 16) sorted by relevance

/third_party/pulseaudio/src/tests/
Dalsa-time-test.c26 snd_pcm_sw_params_t *swparams; in main() local
52 snd_pcm_sw_params_alloca(&swparams); in main()
107 r = snd_pcm_sw_params_current(pcm, swparams); in main()
111 r = snd_pcm_sw_params_set_avail_min(pcm, swparams, 1); in main()
113 r = snd_pcm_sw_params_set_avail_min(pcm, swparams, 0); in main()
116 r = snd_pcm_sw_params_set_period_event(pcm, swparams, 0); in main()
121 … r = snd_pcm_sw_params_set_start_threshold(pcm, swparams, buffer_size - (buffer_size % fillrate)); in main()
124 r = snd_pcm_sw_params_get_boundary(swparams, &boundary); in main()
126 r = snd_pcm_sw_params_set_stop_threshold(pcm, swparams, boundary); in main()
129 r = snd_pcm_sw_params_set_tstamp_mode(pcm, swparams, SND_PCM_TSTAMP_ENABLE); in main()
[all …]
/third_party/alsa-lib/test/
Dpcm.c177 static int set_swparams(snd_pcm_t *handle, snd_pcm_sw_params_t *swparams) in set_swparams() argument
182 err = snd_pcm_sw_params_current(handle, swparams); in set_swparams()
189 …err = snd_pcm_sw_params_set_start_threshold(handle, swparams, (buffer_size / period_size) * period… in set_swparams()
196 err = snd_pcm_sw_params_set_avail_min(handle, swparams, period_event ? buffer_size : period_size); in set_swparams()
203 err = snd_pcm_sw_params_set_period_event(handle, swparams, 1); in set_swparams()
210 err = snd_pcm_sw_params(handle, swparams); in set_swparams()
784 snd_pcm_sw_params_t *swparams; in main() local
791 snd_pcm_sw_params_alloca(&swparams); in main()
891 if ((err = set_swparams(handle, swparams)) < 0) { in main()
Dlatency.c132 snd_pcm_sw_params_t *swparams, in setparams_set() argument
143 err = snd_pcm_sw_params_current(handle, swparams); in setparams_set()
148 err = snd_pcm_sw_params_set_start_threshold(handle, swparams, 0x7fffffff); in setparams_set()
157 err = snd_pcm_sw_params_set_avail_min(handle, swparams, val); in setparams_set()
162 err = snd_pcm_sw_params(handle, swparams); in setparams_set()
/third_party/flutter/skia/third_party/externals/sdl/src/audio/alsa/
DSDL_alsa_audio.c546 snd_pcm_sw_params_t *swparams = NULL; in ALSA_OpenDevice() local
675 snd_pcm_sw_params_alloca(&swparams); in ALSA_OpenDevice()
676 status = ALSA_snd_pcm_sw_params_current(pcm_handle, swparams); in ALSA_OpenDevice()
681 status = ALSA_snd_pcm_sw_params_set_avail_min(pcm_handle, swparams, this->spec.samples); in ALSA_OpenDevice()
687 ALSA_snd_pcm_sw_params_set_start_threshold(pcm_handle, swparams, 1); in ALSA_OpenDevice()
692 status = ALSA_snd_pcm_sw_params(pcm_handle, swparams); in ALSA_OpenDevice()
/third_party/alsa-utils/speaker-test/
Dspeaker-test.c545 static int set_swparams(snd_pcm_t *handle, snd_pcm_sw_params_t *swparams) { in set_swparams() argument
549 err = snd_pcm_sw_params_current(handle, swparams); in set_swparams()
556 err = snd_pcm_sw_params_set_start_threshold(handle, swparams, buffer_size); in set_swparams()
563 err = snd_pcm_sw_params_set_avail_min(handle, swparams, period_size); in set_swparams()
570 err = snd_pcm_sw_params(handle, swparams); in set_swparams()
975 snd_pcm_sw_params_t *swparams; in main() local
1017 snd_pcm_sw_params_alloca(&swparams); in main()
1185 if ((err = set_swparams(handle, swparams)) < 0) { in main()
/third_party/alsa-lib/src/pcm/
Dpcm_plugin.c618 snd_pcm_sw_params_t *swparams; in snd_pcm_plugin_may_wait_for_avail_min() local
619 snd_pcm_sw_params_alloca(&swparams); in snd_pcm_plugin_may_wait_for_avail_min()
624 snd_pcm_sw_params_current(slave, swparams); in snd_pcm_plugin_may_wait_for_avail_min()
631 swparams->avail_min = needed_slave_avail_min; in snd_pcm_plugin_may_wait_for_avail_min()
632 snd_pcm_sw_params(slave, swparams); in snd_pcm_plugin_may_wait_for_avail_min()
Dpcm.c8612 snd_pcm_sw_params_t swparams = {0}; in snd_pcm_set_params() local
8748 err = snd_pcm_sw_params_current(pcm, &swparams); in snd_pcm_set_params()
8758 err = snd_pcm_sw_params_set_start_threshold(pcm, &swparams, in snd_pcm_set_params()
8769 err = snd_pcm_sw_params_set_avail_min(pcm, &swparams, period_size); in snd_pcm_set_params()
8776 err = snd_pcm_sw_params(pcm, &swparams); in snd_pcm_set_params()
/third_party/pulseaudio/src/modules/alsa/
Dalsa-util.c463 snd_pcm_sw_params_t *swparams; in pa_alsa_set_sw_params() local
469 snd_pcm_sw_params_alloca(&swparams); in pa_alsa_set_sw_params()
471 if ((err = snd_pcm_sw_params_current(pcm, swparams)) < 0) { in pa_alsa_set_sw_params()
476 if ((err = snd_pcm_sw_params_set_period_event(pcm, swparams, period_event)) < 0) { in pa_alsa_set_sw_params()
481 if ((err = snd_pcm_sw_params_set_tstamp_mode(pcm, swparams, SND_PCM_TSTAMP_ENABLE)) < 0) { in pa_alsa_set_sw_params()
486 if ((err = snd_pcm_sw_params_get_boundary(swparams, &boundary)) < 0) { in pa_alsa_set_sw_params()
491 if ((err = snd_pcm_sw_params_set_stop_threshold(pcm, swparams, boundary)) < 0) { in pa_alsa_set_sw_params()
496 if ((err = snd_pcm_sw_params_set_start_threshold(pcm, swparams, (snd_pcm_uframes_t) -1)) < 0) { in pa_alsa_set_sw_params()
501 if ((err = snd_pcm_sw_params_set_avail_min(pcm, swparams, avail_min)) < 0) { in pa_alsa_set_sw_params()
506 if ((err = snd_pcm_sw_params(pcm, swparams)) < 0) { in pa_alsa_set_sw_params()
/third_party/gstreamer/gstplugins_base/ext/alsa/
Dgstalsasrc.h57 snd_pcm_sw_params_t *swparams; member
/third_party/alsa-utils/alsaloop/
Dpcmjob.c225 snd_pcm_sw_params_t *swparams, in setparams_set() argument
237 err = snd_pcm_sw_params_current(handle, swparams); in setparams_set()
242 err = snd_pcm_sw_params_set_start_threshold(handle, swparams, 0x7fffffff); in setparams_set()
271 err = snd_pcm_sw_params_set_avail_min(handle, swparams, val); in setparams_set()
276 snd_pcm_sw_params_get_avail_min(swparams, &lhandle->avail_min); in setparams_set()
277 err = snd_pcm_sw_params(handle, swparams); in setparams_set()
288 snd_pcm_sw_params_t *swparams; in increase_playback_avail_min() local
299 snd_pcm_sw_params_alloca(&swparams); in increase_playback_avail_min()
300 err = snd_pcm_sw_params_current(handle, swparams); in increase_playback_avail_min()
305 err = snd_pcm_sw_params_set_avail_min(handle, swparams, lhandle->avail_min + 4); in increase_playback_avail_min()
[all …]
/third_party/alsa-utils/aplay/
Daplay.c1313 snd_pcm_sw_params_t *swparams; in set_params() local
1320 snd_pcm_sw_params_alloca(&swparams); in set_params()
1427 err = snd_pcm_sw_params_current(handle, swparams); in set_params()
1436 err = snd_pcm_sw_params_set_avail_min(handle, swparams, n); in set_params()
1448 err = snd_pcm_sw_params_set_start_threshold(handle, swparams, start_threshold); in set_params()
1454 err = snd_pcm_sw_params_set_stop_threshold(handle, swparams, stop_threshold); in set_params()
1457 if (snd_pcm_sw_params(handle, swparams) < 0) { in set_params()
1459 snd_pcm_sw_params_dump(swparams, log); in set_params()
/third_party/alsa-utils/po/
Dja.po1471 msgid "Unable to determine current swparams for playback: %s\n"
1472 msgstr "現在の swparams を取得できません: %s\n"
1658 msgid "Setting of swparams failed: %s\n"
1659 msgstr "swparams の設定に失敗: %s\n"
Deu.po1511 msgid "Unable to determine current swparams for playback: %s\n"
1705 msgid "Setting of swparams failed: %s\n"
1706 msgstr "swparams-eko hobespenek huts egin dute: %s\n"
Dsk.po1521 msgid "Unable to determine current swparams for playback: %s\n"
1713 msgid "Setting of swparams failed: %s\n"
1714 msgstr "Chyba pri nastavovaní softvérových parametrov (swparams): %s\n"
Dde.po1485 msgid "Unable to determine current swparams for playback: %s\n"
1675 msgid "Setting of swparams failed: %s\n"
Dfr.po1501 msgid "Unable to determine current swparams for playback: %s\n"
1693 msgid "Setting of swparams failed: %s\n"