Home
last modified time | relevance | path

Searched refs:SIO_PLAY (Results 1 – 12 of 12) sorted by relevance

/openbsd/src/lib/libsndio/
Dsio.c50 if ((mode & (SIO_PLAY | SIO_REC)) == 0) in sio_open()
55 if ((mode & SIO_PLAY) == 0) in sio_open()
59 if (mode == (SIO_PLAY | SIO_REC) || str == NULL) in sio_open()
358 if (!hdl->started || !(hdl->mode & SIO_PLAY)) { in sio_write()
430 if ((hdl->mode & SIO_PLAY) && !sio_wsil(hdl)) in sio_revents()
467 wbpf = (hdl->mode & SIO_PLAY) ? hdl->par.bps * hdl->par.pchan : 1; in _sio_printpos()
473 wpos = (hdl->mode & SIO_PLAY) ? in _sio_printpos()
507 if (hdl->mode & SIO_PLAY) in _sio_onmove_cb()
512 if ((hdl->mode & SIO_PLAY) && hdl->wused < 0) { in _sio_onmove_cb()
Dsio_sun.c118 if (pchan && (hdl->sio.mode & SIO_PLAY)) in sio_sun_testpar()
199 if (hdl->sio.mode & SIO_PLAY) { in sio_sun_getcap()
298 if (mode == (SIO_PLAY | SIO_REC)) in sio_sun_getfd()
301 flags = (mode & SIO_PLAY) ? O_WRONLY : O_RDONLY; in sio_sun_getfd()
378 if (hdl->sio.mode & SIO_PLAY) { in sio_sun_start()
428 if (hdl->sio.mode & SIO_PLAY) in sio_sun_setpar()
560 if (hdl->sio.mode & SIO_PLAY) { in sio_sun_revents()
579 if (!(hdl->sio.mode & SIO_PLAY)) { in sio_sun_revents()
Dsio_aucat.c297 if (hdl->sio.mode & SIO_PLAY) in sio_aucat_setpar()
333 if (hdl->sio.mode & SIO_PLAY) in sio_aucat_getpar()
/openbsd/src/usr.bin/aucat/
Daucat.c172 if (mode & SIO_PLAY) { in chans_fmt()
209 s->mode == SIO_PLAY ? "play" : "rec", in slot_fmt()
213 if (s->mode == SIO_PLAY) { in slot_fmt()
277 mode == SIO_PLAY ? AFILE_FREAD : AFILE_FWRITE, in slot_new()
333 if (s->mode == SIO_PLAY) in slot_init()
342 if (s->mode & SIO_PLAY) { in slot_init()
423 if (s->mode & SIO_PLAY) in slot_start()
437 if (s->mode & SIO_PLAY) in slot_stop()
690 if (s->mode == SIO_PLAY) { in dev_open()
705 if (mode & SIO_PLAY) in dev_open()
[all …]
/openbsd/src/usr.bin/sndiod/
Dsiofile.c93 unsigned int rate, mode = d->reqmode & (SIO_PLAY | SIO_REC); in dev_sio_open()
97 if (mode != (SIO_PLAY | SIO_REC)) in dev_sio_open()
99 d->sio.hdl = fdpass_sio_open(d->num, SIO_PLAY); in dev_sio_open()
101 mode = SIO_PLAY; in dev_sio_open()
110 d->path, mode == SIO_PLAY ? "play-only" : "rec-only"); in dev_sio_open()
124 if (d->mode & SIO_PLAY) in dev_sio_open()
149 if (mode & SIO_PLAY) in dev_sio_open()
179 if ((d->mode & SIO_PLAY) && par.pchan > NCHAN_MAX) { in dev_sio_open()
206 if (d->mode & SIO_PLAY) in dev_sio_open()
Dfdpass.c276 if (d == NULL || !(mode & (SIO_PLAY | SIO_REC))) { in fdpass_in_helper()
/openbsd/src/regress/lib/libsndio/cap/
Dcap.c65 unsigned mode = SIO_PLAY | SIO_REC; in main()
74 mode &= ~SIO_PLAY; in main()
/openbsd/src/regress/lib/libsndio/play/
Dplay.c100 hdl = sio_open(SIO_DEVANY, SIO_PLAY, 0); in main()
/openbsd/src/regress/lib/libsndio/vol/
Dvol.c101 hdl = sio_open(SIO_DEVANY, SIO_PLAY, 0); in main()
/openbsd/src/include/
Dsndio.h133 #define SIO_PLAY 1 macro
/openbsd/src/regress/lib/libsndio/fd/
Dfd.c270 mode |= SIO_PLAY; in main()
/openbsd/src/usr.bin/cdio/
Drip.c468 info->hdl = sio_open(NULL, SIO_PLAY, 0); in play_next_track()