summaryrefslogtreecommitdiffstats
path: root/usr.bin/audioctl/audioctl.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* unveil(2) "path" (/dev/audioctl0 by default, or changed via args) with rwmestre2018-09-171-1/+6
| | | | | | access and disable further calls to unveil(2) with unveil(NULL, NULL). OK ratchov@
* close fd on an exit pathjsg2017-05-311-2/+4
|
* close an opened fd before returning from mainjsg2016-08-311-1/+2
| | | | ok guenther@
* use the same argument name for -f in usage() as in SYNOPSIS;jmc2016-06-211-4/+4
|
* Make usage string match the man page.ratchov2016-06-211-2/+5
| | | | suggested by jmc@
* Reimplement audioctl using new api in a simper way.ratchov2016-06-211-376/+218
| | | | | | | | | | | | | | | | - group all encoding parameters in a signle string, ex. "s16le", this way we use the same naming scheme as aucat, sndiod and many ports. - remove "properties" as they are not used any longer - remove the list of encodings as there's no benefit in having it. We don't have lists for other parameters (sample rates, channel numbers) either. - add -q option, to look like sysctl - remove unused -a option - stop using symlinks in /dev, most other software doesn't use them. ok semarie@
* Display play and record parameters that are not independentratchov2016-01-291-22/+26
| | | | | | | | as a single variable (this corresponds to the way the audio driver handles them). As we're at it, drop unused/duplicate parameters. ok mpi
* Use new AUDIO_GETPOS ioctl() to ensure "bytes" and "errors" countersratchov2015-07-281-15/+11
| | | | are consistent.
* Exposes number of bytes processed by the sound card (as returnedratchov2015-05-261-3/+9
| | | | | | | by AUDIO_GET{I,O}OFFS) instead of the number of bytes processed minus the xruns (as returned by AUDIO_GETINFO). ok armani
* Display simply "play" when play mode is set (furthermore, "playsync",ratchov2015-05-161-5/+2
| | | | aka PLAY_ALL mode is not used anymore)
* remove reference to encodings the kernel doesn't expose anymoreratchov2015-05-161-9/+1
|
* in getopt() blocks, stop incrementing flag variable which are supposedderaadt2015-02-081-3/+3
| | | | | to just be 0/1 ok miod florian
* Hide unused, duplicate and/or misleading fields.ratchov2014-09-231-28/+1
| | | | ok armani, shadchin, kspillner
* handle missing protoderaadt2013-11-131-2/+2
|
* Fix initializer botch introduced in r1.20 when 'oldval' field waskrw2012-07-271-2/+2
| | | | | | | | added into middle of struct field (sic), without adding appropriate initializer values. Move field to end of struct and let 0 be it's value. Spotted and diff from David Julio.
* add two new members to structs audio_encoding and audio_prinfo.jakemsr2010-07-151-3/+7
| | | | | | | | | | for both structs, the new members are 'bps' and 'msb', which describe the number of bytes per sample and data alignment in the sample, respectively. drivers must properly set these fields in the 'query_encoding', 'set_parameters' and 'get_default_params' hardware interface methods. discussed with ratchov, deraadt
* When values are changed, log the change in the ``name: old -> new''ratchov2009-11-121-33/+49
| | | | | | format, as mixerctl does. If -n is used log the new value only. from Pawlowski Marcin Piotr <pmp.openbsd at gmail.com>, thanks. ok jakemsr
* First pass at removing clauses 3 and 4 from NetBSD licenses.ray2008-06-261-8/+1
| | | | | | | | | Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@
* display count of playback frame errors (underruns) in play.errors like wejakemsr2008-04-251-4/+7
| | | | | | do with record.errors for recording (overruns). ok ratchov
* add audio(4) driver the ability to use different block sizes for play andratchov2008-03-221-1/+3
| | | | | | | | record modes. This makes possible to have blocks of the same duration if the play and record formats are different. The API change is backward compatible, so it shouldn't be noticed by current audio ports. ok jakemsr
* if no arguments given, assume a nice default; ok miod jakemsr deannaderaadt2007-11-261-2/+5
|
* style(9) fixes, optional flags without arguments come first;sobrado2007-09-271-12/+12
| | | | | | while here, some spacing fixes ok deanna@, jakemsr@
* implement the output_muted member of audio_info_t as found in originaljakemsr2007-09-171-1/+2
| | | | | | Sun audio. input from and ok ratchov
* the ellipsis is not an optional argument; while here, sync the usagesobrado2007-08-061-3/+3
| | | | | | | | and synopsis of commands lots of good ideas by jmc@ ok jmc@
* More use of const and fix a signed/unsigned comparison.moritz2006-03-141-10/+10
| | | | From David Hill. ok ray@ jaredy@
* make -w optional to set options, so audioctl is consistent withvincent2004-07-061-57/+56
| | | | | | "new" sysctl/mixerctl ok millert@, "go for it" deraadt@
* ()deraadt2003-06-211-2/+2
|
* kill += snprintfderaadt2003-04-161-10/+11
|
* audio_prinfo.seek is int now; document and syncnaddy2002-12-131-3/+3
| | | | ok miod@ millert@
* ansi, KNF, other style(9) improvements and logic simplification; andrushock@korovino.netpvalchev2002-12-101-44/+35
|
* Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.millert2002-02-161-7/+7
|
* Sync usage() output and man page; mpech@prosoft.org.lvaaron2000-11-211-4/+4
|
* fullduplex, and UINTderaadt1998-07-151-2/+3
|
* From NetBSD: Lennart Augustssonprovos1998-04-301-3/+8
| | | | environment variable for default audioctl device
* $OpenBSD$provos1998-04-261-0/+1
|
* audioctl from NetBSD, mostly by Lennart Augustsson <augustss@cs.chalmers.se>provos1998-04-261-0/+448