Home
last modified time | relevance | path

Searched refs:SIO_REC (Results 1 – 10 of 10) sorted by relevance

/openbsd/lib/libsndio/
H A Dsio.c50 if ((mode & (SIO_PLAY | SIO_REC)) == 0) in sio_open()
57 if ((mode & SIO_REC) == 0) in sio_open()
59 if (mode == (SIO_PLAY | SIO_REC) || str == NULL) in sio_open()
321 if (!hdl->started || !(hdl->mode & SIO_REC)) { in sio_read()
432 if ((hdl->mode & SIO_REC) && !sio_rdrop(hdl)) in sio_revents()
466 rbpf = (hdl->mode & SIO_REC) ? hdl->par.bps * hdl->par.rchan : 1; in _sio_printpos()
471 rpos = (hdl->mode & SIO_REC) ? in _sio_printpos()
505 if (hdl->mode & SIO_REC) in _sio_onmove_cb()
H A Dsio_sun.c120 if (rchan && (hdl->sio.mode & SIO_REC)) in sio_sun_testpar()
211 if (hdl->sio.mode & SIO_REC) { in sio_sun_getcap()
298 if (mode == (SIO_PLAY | SIO_REC)) in sio_sun_getfd()
430 if (hdl->sio.mode & SIO_REC) in sio_sun_setpar()
566 if (!(hdl->sio.mode & SIO_REC)) { in sio_sun_revents()
573 if (hdl->sio.mode & SIO_REC) { in sio_sun_revents()
H A Dsio_aucat.c295 if (hdl->sio.mode & SIO_REC) in sio_aucat_setpar()
335 if (hdl->sio.mode & SIO_REC) in sio_aucat_getpar()
/openbsd/usr.bin/sndiod/
H A Dsiofile.c98 unsigned int rate, mode = d->reqmode & (SIO_PLAY | SIO_REC); in dev_sio_open()
102 if (mode != (SIO_PLAY | SIO_REC)) in dev_sio_open()
108 d->sio.hdl = fdpass_sio_open(d->num, SIO_REC); in dev_sio_open()
110 mode = SIO_REC; in dev_sio_open()
138 if (d->mode & SIO_REC) in dev_sio_open()
163 if (mode & SIO_REC) in dev_sio_open()
204 if ((d->mode & SIO_REC) && par.rchan > NCHAN_MAX) { in dev_sio_open()
241 if (d->mode & SIO_REC) in dev_sio_open()
H A Dfdpass.c326 if (d == NULL || !(mode & (SIO_PLAY | SIO_REC))) { in fdpass_in_helper()
/openbsd/usr.bin/aucat/
H A Daucat.c357 if (s->mode & SIO_REC) { in slot_init()
442 if (s->mode & SIO_REC) in slot_stop()
709 if (s->mode == SIO_REC) { in dev_open()
722 if (mode & SIO_REC) in dev_open()
743 if (mode & SIO_REC) { in dev_open()
752 if (mode & SIO_REC) { in dev_open()
769 if (dev_mode & SIO_REC) { in dev_open()
790 if (dev_mode & SIO_REC) in dev_close()
1157 if (dev_mode & SIO_REC) { in playrec_cycle()
1254 if (mode & SIO_REC) in playrec()
[all …]
/openbsd/regress/lib/libsndio/cap/
H A Dcap.c65 unsigned mode = SIO_PLAY | SIO_REC; in main()
71 mode &= ~SIO_REC; in main()
/openbsd/regress/lib/libsndio/rec/
H A Drec.c91 hdl = sio_open(SIO_DEVANY, SIO_REC, 0); in main()
/openbsd/include/
H A Dsndio.h134 #define SIO_REC 2 macro
/openbsd/regress/lib/libsndio/fd/
H A Dfd.c268 mode |= SIO_REC; in main()