Commit Graph

61 Commits

Author SHA1 Message Date
andvar 5a58ccfbec fix various typos in comments, documentation and messages.
mainly s/paramater/parameter/ and s/reduntant/redundant/.
2022-08-07 11:06:18 +00:00
nia bc9df35069 audioctl.1: describe foibles 2021-03-21 10:50:08 +00:00
wiz f96f071847 Sort options (no-argument options before ones demanding arguments).
Bump date.
2019-05-09 09:37:11 +00:00
isaki 017c116c97 Remove -p option. AUDIO_SETCHAN is insecure and is obsoleted. 2019-05-08 14:44:42 +00:00
nat cf3b979950 Renane ioctl AUDIO_SETPROC to AUDIO_SETCHAN.
Add an ioctl to return channel number (AUDIO_GETCHAN). This can be used
on audio/sound/audioctl devices.

Return EIO in read/write/ioctl/poll/stat if fp has been closed or is
invalid.

Update audio.4, audioio.h and audioctl(1) to reflect these changes.
2017-03-21 07:04:29 +00:00
nat f835d36292 Audio now uses fdclone, there is no longer a limitation of one audio
instance per process.  Virtual channels are placed in a queue, so there is
no longer a compile time limit of VAUDIOCHANS.

A new sysctl has been added to control multiple user access.
Mixer labels on virtual channels are now prefixed by vchan.

audiobell.c and audioctl have been updated to reflect these changes.

Use of fdclone was posted to tech-kern@ and improvements made.
Multiuser access control changes and the use of a queue were suggessted by
pgoyette@
2017-02-10 19:31:42 +00:00
nat 82924a36bf The audio sub-system now supports the following features as
posted to tech-kern:

    * Simultaneous playback and mixing of multiple streams
    * Playback streams can be of different encoding, frequency, precision
      and number of channels
    * Simultaneous recording to different formats
    * One audio device per process
    * Sysctls to set the common format frequency, precision and channels
    * Independent mixer controls for recording/playback per stream
    * Utilizes little cpu time for multiple streams / good performance
    * Compatible with existing programs that use OSS/NetBSD audio
    * Changes to audioctl(1) to allow specifying process id for corresponding
      audio device
2016-12-08 10:28:44 +00:00
mrg 0c2e06460b move most of the header writing code from record.c into wav.c and sun.c.
introduce a struct write_info for communication between front ends and
backends.

libaudio API is still pretty ugly, and needs to stay local here for now,
but it is a little more usable for other tools now.
2013-08-30 20:57:26 +00:00
joerg c36a7298be ANSIfy. Add static. Add __dead. 2011-08-28 01:17:47 +00:00
joerg 757c7f4987 Reorder sections to canonical order. 2010-05-15 00:08:31 +00:00
lukem 31582cc99b fix -Wsign-compare and other WARNS=4 issues 2009-04-11 10:43:09 +00:00
mrg c2b95373bf remove clause #3 from my license where there are no other
copyright holders involved.
2008-05-29 14:51:25 +00:00
martin 11a6dbe728 Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
martin ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
christos afb23e8f50 use c99 initializer. 2006-10-22 16:12:20 +00:00
salo 0f5a0c156d netbsd.org->NetBSD.org 2003-07-26 20:34:11 +00:00
agc c0db2196e7 Add NetBSD RCS Ids. 2003-06-23 12:15:00 +00:00
wiz 990562bfef .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
wiz c053751628 compatibility, not compatiblity. 2003-01-06 13:26:24 +00:00
wiz e1ec03904e New sentence, new line. Use Aq/An. 2002-10-13 01:06:42 +00:00
augustss b5d25cc57f Test for default device in a portable way. Thanks to Michael Ericsson
for spotting the problem.
2002-02-05 00:17:26 +00:00
augustss d1c426fe38 Use _PATH_SOUND etc, all fall back to _PATH_SOUND0 (etc.) if that fails. 2002-01-31 00:03:23 +00:00
jdolecek 910223ce2e Delete the old code which made audioctl use stderr for output
if the stdout was same as the audio device. It's no longer relevant,
and the check was broken anyway (code used st_dev rather than st_rdev
when comparing the character devices).
A by-product of this is that 'audioctl -a > /dev/null' now works.

Okay'ed by Lennart.
2002-01-27 18:21:52 +00:00
jdolecek b88029fb96 Use '-d' rather than '-f' for specification of alternative
mixer or audioctl device. The support for '-f' is kept for compatibility
for now.
2002-01-27 10:09:55 +00:00
mrg e7fdf18240 - WARNS=3 (from ross@netbsd.org)
- fix a bug in WAV conversions
2002-01-15 23:48:51 +00:00
wiz 663a1fb2a8 Sort sections, drop some whitespace. 2001-10-17 22:13:04 +00:00
simonb 3fa9ceaa88 Fix white space and formatting nits. 2001-03-28 03:18:39 +00:00
cgd a8ec668ddf convert to use getprogname() 2001-02-19 23:03:42 +00:00
christos 8f3b31ba6f fix nested extern 2001-02-05 01:21:00 +00:00
mrg 67312df72f de-__P()-ify 2000-12-22 11:38:42 +00:00
augustss 6e9632f4a4 Xref audioplay(1) and audiorecord(1). 1999-04-02 15:53:39 +00:00
mrg e0c321f25d add missing copyrights. 1999-03-26 15:46:22 +00:00
mrg 072cb74108 audio paths are in <paths.h> 1999-03-26 14:05:41 +00:00
mrg 140c9e18e1 add audiorecord and audioplay tools. audioplay does .au and .wav files. audiorecord makes .au files only. uses parts of audioctl.. 1999-03-26 14:02:39 +00:00
erh fa45851f9b Add missing .El line. 1999-03-10 05:14:51 +00:00
mycroft ed792e5ddd Oops; update the date as well. 1999-02-18 17:43:03 +00:00
mycroft e33b5e3104 Update comments. 1999-02-18 17:40:36 +00:00
mycroft ba0967bb41 Rework the examples section a little. 1999-02-18 17:37:37 +00:00
augustss 9726cfd1fb Make the copyright header conform to the NetBSD template. 1998-11-25 22:17:06 +00:00
augustss 479659f618 Fix thinko in last commit. 1998-08-21 19:52:39 +00:00
augustss 022a8ef794 Use audio and mixer devices with unit numbers. Also allow the devices
without unit numbers of a compatibility option is set.  Fixes PR 5991.
1998-08-21 19:45:37 +00:00
mrg 106340f1ef audio_prinfo.seek is now a UINT 1998-08-13 09:36:34 +00:00
mycroft 8efdd63546 Make it possible to do:
audioctl -w play=44100,2,16,slinear

Not the greatest implementation.
1998-08-10 18:19:03 +00:00
mycroft 519d858510 __AUDIT__ cleanup. 1998-07-28 19:22:54 +00:00
augustss 7a4317cfef Fix typo. From Feico Dillema <dillema@acm.org> 1998-07-13 15:11:03 +00:00
augustss b817f6c32a Chnage the name of the environment variables just introduced. 1998-04-27 16:55:23 +00:00
augustss 5749437b03 Add an environment variable for the default audio device. 1998-04-27 16:48:59 +00:00
augustss 69a1b57acb Update for SunOS compatibility. 1997-10-19 07:44:12 +00:00
lukem e3e553a90c fix .Nm usage 1997-10-18 12:05:22 +00:00
augustss 64e2e4badb Print properties differently.
Change indentation.
1997-10-11 13:40:26 +00:00