summaryrefslogtreecommitdiffstats
path: root/lib/libsndio (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Clarify what sio_start() does exactlyratchov2020-11-291-13/+13
| | | | | Suggested by Erico Nogueira <ericonr@disroot.org>, help from and ok jmc@, schwarze@
* * Make .Nd more specific.schwarze2020-11-201-44/+57
| | | | | | | | * Avoid lots of short non-standard .Sh sections. * Describe server and raw descriptors separately. * Move examples to the EXAMPLES section. * Mention that "default" is used even when *not* specified. tweak and OK ratchov@
* * Add SIO_BPS() to NAME and SYNOPSIS where it is missing.schwarze2020-11-201-6/+15
| | | | | | | | * Use .Fn rather than .Dv for macros taking arguments. * Actually say what SIO_LE_NATIVE means. * Add closely related APIs to SEE ALSO. * Add missing HISTORY and AUTHORS sections. OK ratchov@
* Allow specific devices to be used for play-only and rec-only modes.ratchov2020-11-192-8/+25
| | | | | | | | | | | | Introduce new AUDIO{PLAY,REC}DEVICE environment variables that override AUDIODEVICE in cases play-only and rec-only mode is requested. This allows using different devices for playback and recording in programs requesting twice the default device (one in play-only mode and one in rec-only mode). Based on diffs from Peter J Philipp, semarie, and solene ok solene, sthen
* Raw device access is not anymore a fall-back for when sndiod isn't runningratchov2020-07-181-8/+2
| | | | Found by Jan Stary <hans at stare.cz>, discussed with jmc@
* Use .Dv for SIOCTL_SEL, as we do for all other macrosratchov2020-06-281-3/+3
|
* Allow switching between alternate devices (-F option) with sndioctl(1)ratchov2020-06-281-1/+1
|
* Add a new SIOCTL_SEL control type to select one of a predefined set ofratchov2020-06-281-5/+11
| | | | | mutually exclusive values. It's the same as SIOCTL_LIST except that exactly one list element may be selected.
* basic macro cleanup: .Fo for long .Fn lines, .Fa for struct fields,schwarze2020-06-201-69/+75
| | | | avoid \*(Gt and \*(Lt, .Dv NULL, .Cm for pledge promises
* add missing ENVIRONMENT. HISTORY, and AUTHORS sections,schwarze2020-06-201-12/+29
| | | | | and a few other wording and markup improvements while here; OK jmc@ ratchov@
* uint8_t is a discrete, not a continuous type,schwarze2020-06-181-9/+8
| | | | | and some other wording improvements with respect to types; OK ratchov@
* Many of these functions have several arguments, and some argumentsschwarze2020-06-181-19/+48
| | | | | | | are very long (function pointers), such that a number of input lines in the SYNOPSIS do not fit into 80 columns. Consequently, consistently use .Fo/.Fa/.Fc rather than .Fn for better readability of the source code. Mechanical diff, no output change.
* basic macro cleanup, and reword two phrases about closed intervalsschwarze2020-06-181-53/+52
| | | | | | of integers for clarity and to read better; one of the issues (abuse of .Sm) was originally reported by jmc@; ok jmc@ ratchov@
* Document sioctl_desc structure maxval attributeratchov2020-06-181-5/+19
|
* Add missing .Xr and .Nm, reword and simplify few sentencesratchov2020-05-251-13/+20
| | | | from schwarze@
* remove information already given in same sentence;jmc2020-05-191-2/+2
| | | | ok ratchov
* Replace off-topic parts of the desciption by an architecture overviewratchov2020-05-191-62/+58
| | | | | | | | | | Remove useless (re)wording of what are audio(4) and midi(4), add a quick description of sndiod as intermediate layer. Try to focuse on what the sndio library and sndiod do instead of how they do it. As suggested by schwarze, use the word "device descriptor" instead of "device name" to avoid the common confusion with the device files. ok and tweaks from jmc
* If no "xxx.mute" control is found, try "xxx_mute"ratchov2020-04-301-1/+11
| | | | | Certain drivers (azalia, uaudio) use a control with the "_mute" suffix to expose the "mute" knob.
* move mixerctl and audioctl man pages to section 8, as these workderaadt2020-04-211-3/+3
| | | | against root-only device nodes.
* spelling fix;jmc2020-04-191-2/+2
|
* Mention SIO_DEVANY instead of nonexistent SIOCTL_DEVANY constantfeinerer2020-04-191-3/+3
| | | | OK ratchov@
* Fix .Dt line and copyright year.ratchov2020-02-261-3/+3
| | | | From jmc@, thanks.
* Add API to control audio device parameters exposed by sndiod.ratchov2020-02-269-5/+1304
| | | | | | | | | | | | | The API exposes controls of modern audio hardware and sndiod software volume knobs in a uniform way. Hardware knobs are exposed through sndiod. Multiple programs may use the controls at the same time without the need to continuously scan the controls. For now sndiod exposes only its own controls and the master output and input volumes of the underlying hardware (if any), i.e. those typically exposed by acpi volume keys. ok deraadt
* Add affinity between the program and its mixer control.ratchov2019-07-122-3/+4
| | | | | | | | | | | | | | | Currently, if there are two instances of the same program, sndiod will allocate one volume control to each. If both programs disconnect and reconnect, the information of which control is assigned to which program is lost. This makes difficult to run two instances of a player and crossfade between each other with a MIDI controller. To address this, the program chooses a 32-bit "id" (for now the process pid) and sends it to the server. The server records the id in the client's slot structure. When the server accepts a new connection, it uses the id to identify the slot the client used during the previous connection; if it was not recycled yet, it's assigned to the program.
* Add forgotten copyright notice, found by Jason Thorpe <thorpej at me.com>.ratchov2019-07-051-0/+17
| | | | Thanks!
* Check if syscalls return -1 instead of any negative value.ratchov2019-06-294-33/+33
| | | | "Looks right" deraadt
* When system calls indicate an error they return -1, not some arbitraryderaadt2019-06-281-18/+18
| | | | | | value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
* mkstemp() returns -1 on failurederaadt2019-06-281-2/+2
|
* Wait until server disconnects before closing the socket. Otherwise,ratchov2019-03-281-4/+17
| | | | last bytes sent may be lost by the server.
* Sayt that using capabilities to negociate audio parameters (ie usingratchov2019-01-181-2/+12
| | | | | | sio_getcap() function) is not recomended. From Paul Swanson <psw at protonmail.com>, ok jmc
* "a" MIDI, not "an";jmc2018-12-181-3/+3
|
* remove a guard in mio_read(), mio_write, sio_read() & sio_write() for amiko2018-10-312-22/+2
| | | | | | zero length request. return value of zero is preserved in this case. OK ratchov@
* call _sndio_parsenum() instead of duplicating the code in parsedev(); ok ratchov@miko2018-09-262-27/+10
|
* fix message to reflect "rmidi" is the expected string; ok ratchov@miko2018-09-191-2/+2
|
* sys/stat.h not needed here; ok ratchov@miko2018-09-194-8/+4
|
* Move libsndio session cookie in its own $HOME/.sndio/ directory toratchov2018-07-283-8/+18
| | | | | | make libsndio easier to use with unveil(2). "make sense" deraadt
* Rename the sndiod unix domain socket to /tmp/sndio/sockN to avoidratchov2018-07-281-4/+4
| | | | | | wondering what are these "aucat" files in /tmp. "make sense" deraadt
* Missed in previousjca2017-12-261-0/+36
| | | | Spotted by patrick@, thanks
* Use a version script to limit exported symbolsjca2017-12-262-3/+5
| | | | ok ratchov@ kettenis@
* * clean up macro usage: use .Ar for command arguments, .Cm for fixedschwarze2017-12-071-30/+33
| | | | | | | | strings to be used in commands, and .Li for example strings * clarify what uses the two environment variables, and that only these two are ignored for issetugid(2) programs triggered by a question from Jan Stary <hans at stare dot cz> feedback and OK ratchov@
* polish debug printfs, no behaviour change.ratchov2017-11-041-2/+6
|
* add missing HISTORY; based on CVS logs and release announcementsschwarze2017-10-171-2/+7
|
* Tweak RETURN VALUES section. Move description of sio_pollfd() andnatano2017-01-031-18/+28
| | | | | | sio_nfds() return values there and add a paragraph about sio_eof(). ok jmc ratchov
* Use the "new" audio(4) api and delete all the useless code to dealratchov2016-04-071-447/+154
| | | | | | | with artificial complications caused by the old api. No behaviour change. ok armani, semarie
* for some time now mandoc has not required MLINKS to functionjmc2016-03-301-26/+1
| | | | | | | | | | | | correctly - logically complete that now by removing MLINKS from base; authors need only to ensure there is an entry in NAME for any function/ util being added. MLINKS will still work, and remain for perl to ease upgrades; ok nicm (curses) bcook (ssl) ok schwarze, who provided a lot of feedback and assistance ok tb natano jung
* Document how to use sndio in pledged programs.tim2016-02-111-2/+57
| | | | Input and OK jmc@ ratchov@ semarie@
* Make code fit in 80 columns, remove trailing spaces & tabs.ratchov2016-01-097-21/+24
|
* fix SEE ALSO;jmc2016-01-071-3/+3
|
* Move sndiod man page to section 8.ratchov2016-01-073-34/+34
| | | | suggested by deraadt, fixes from jmc, ok millert
* remove NULL-checks before free()mmcc2015-12-231-5/+3
|