Age | Commit message (Collapse) | Author | |
---|---|---|---|
2009-05-16 | don't set mode in sio_setpar(), already done at initialization | Alexandre Ratchov | |
2009-05-16 | add a new ``hello'' message to aucat protocol useful to work on | Alexandre Ratchov | |
future aucat extentions. No functional changes. | |||
2009-05-16 | fix style to make future diffs contain functional changes only | Alexandre Ratchov | |
2009-05-16 | in aucat_getpar() and aucat_getcap(), initialize the message to send | Alexandre Ratchov | |
with AMSG_INIT(), rather than the reply we expect. | |||
2009-05-15 | cleanup forgotten calls to exit(3) | Alexandre Ratchov | |
2009-05-15 | replace s/sa/sio/, left from when libsa was renamed to libsndio | Alexandre Ratchov | |
2009-05-15 | in headers, macro definitions come first, prototypes come next | Alexandre Ratchov | |
2009-05-15 | if DEBUG is defined, use a global debug level rather | Alexandre Ratchov | |
than a per-stream debug level. No behaviour change. | |||
2009-05-15 | describe sio_getcap(), sio_pollfd() and sio_setvol() retrurn values | Alexandre Ratchov | |
spotted by Philipp Schafft | |||
2009-04-21 | no need to install includes from here anymore | Theo de Raadt | |
2009-04-21 | move src/lib/libsndio/sndio.h into src/include where other include | Alexandre Ratchov | |
files leave. requested by deraadt@, ok miod@ | |||
2009-04-13 | protypes in sndio.h make reference to struct pollfd; applications | Alexandre Ratchov | |
that don't use sys/poll.h, wont compile with gcc2. Fix this by declaring the pollfd structure spotted by and ok deraadt | |||
2009-02-26 | don't use ``hdl->filling'' flag uninitialized | Alexandre Ratchov | |
ok deraadt | |||
2009-02-25 | after the STOP message is sent, move the receiver to the RMSG state | Alexandre Ratchov | |
only if it's in the IDLE state, otherwise in some rare cases a data chunk may be interpreted as a message, causing the connection to be dropped. ok deraadt | |||
2009-02-18 | in aucat_stop(), after the STOP message was send, put the receiver | Alexandre Ratchov | |
in ``waiting state'', otherwise the ACK message will be skipped, and the other functions not expecting ACKs might be confused by the ACK. | |||
2009-02-09 | ignore evironment variables if the program is setuid or setgid | Alexandre Ratchov | |
explained by deraadt, ok miod, ok millert | |||
2009-02-04 | update the default socket paths, to reflect recent aucat changes | Alexandre Ratchov | |
2009-02-04 | explain that it's ok if we get a slightly different rate than | Alexandre Ratchov | |
the one we asked for, from Thomas Pfaff <tpfaff(at)tp76.info> with tweaks from jmc@ | |||
2009-02-04 | Programs have no direct access do the device file descriptor. So, if | Alexandre Ratchov | |
the programs calls execvp(2), the new image can't use the device, which stays open, so other programs get EBUSY. Set the close-on-exec flag to avoid this. ok jakemsr | |||
2009-02-03 | in server mode, create /tmp/aucat-userid/ directory with | Alexandre Ratchov | |
permissions 0700, and create sockets in it. This prevents one local user to eavesdrop or disturb audio programs of other users. if you're using the ``-s socket'' option with an absolute path as argument, please update it to use a socket name. requested by many, bits from jakemsr and otto ok jakemsr | |||
2009-01-21 | fix bugs section: clarify that sio_start() and sio_stop() should | Alexandre Ratchov | |
not be used if blocking is not desirable. | |||
2009-01-21 | explain what ``frame'' does mean | Alexandre Ratchov | |
from Thomas Pfaff <tpfaff(at)tp76.info>, thanks! ok jmc | |||
2009-01-21 | make declarations "C" to allow c++ code to compile | Alexandre Ratchov | |
discussed with espie@, ok jakemsr@ and millert@ | |||
2009-01-17 | cleanup: remove prototypes of inexistent functions, move few private | Alexandre Ratchov | |
functions into private header file. suggested by espie@ | |||
2009-01-12 | replace s/routine/function/, as other manuals do | Alexandre Ratchov | |
from Thomas Pfaff <tpfaff(at)tp76.info>, thanks! ok jmc@ | |||
2009-01-10 | make all private functions static | Alexandre Ratchov | |
2009-01-08 | oops, i messed up tim's patch; correction from Tim van der Molen | Jason McIntyre | |
2009-01-08 | a little macro cleanup; from Tim van der Molen | Jason McIntyre | |
2008-12-27 | when polling aucat(1) socket, don't set the POLLIN bit if we | Alexandre Ratchov | |
don't expect messages. Avoids busy loops in programs calling poll(2) on a stopped device. | |||
2008-12-27 | when using the aucat(1) backend, don't mask the POLLHUP bit | Alexandre Ratchov | |
even if the device is not started yet. This way, if the server is killed programs can notice it. | |||
2008-12-21 | remove mixer bits from the audio(4) backend of libsndio, it's not | Alexandre Ratchov | |
possible to get them right in the current state of the mixer. discussed with jakemsr | |||
2008-12-21 | fix more spelling errors and typos, | Alexandre Ratchov | |
from Thomas Pfaff <tpfaff(at)@tp76.info>, thanks | |||
2008-12-17 | stop using stderr in the library, wrap all diagnostic fprintfs | Alexandre Ratchov | |
so they are visible only when the DEBUG macro is #defined and SIO_DEBUG env. variable is set. requested by many, discussed with jakemsr | |||
2008-12-17 | tweak previous; | Jason McIntyre | |
2008-12-17 | fix spell errors, from Thomas Pfaff <tpfaff(at)tp76.info>, thanks! | Alexandre Ratchov | |
2008-12-17 | add a writable ``appbufsz'' field to the sa_par structure, containing | Alexandre Ratchov | |
the program-part of the buffer size, ie the part that is subject to underruns. Useful for apps like cdio(1) that don't have their own rings, or to apps that have a minimum ring size constraint. Setting the ``bufsz'' parameter becomes deprecated. ok jakemsr | |||
2008-11-20 | make both aucat(1) and audio(4) backends use the AUDIODEVICE env | Alexandre Ratchov | |
variable to determine the socket or the device to use. Allow choosing the when aucat(1) is used too. Noticed and tested by naddy@ | |||
2008-11-20 | while setting the block size, try smaller blocks half of the retries and | Alexandre Ratchov | |
larger blocks the other half. That's because shrinking the block size may not be the right direction to go to find a common block size for play and record. | |||
2008-11-17 | occures -> occurs; | Jason McIntyre | |
2008-11-17 | allow aucat to run as server in play-only and record-only mode, so | Alexandre Ratchov | |
it can be used on play-only, record-only and half-duplex devices. ok jakemsr | |||
2008-11-16 | document that sio_revents() can return POLLHUP | Alexandre Ratchov | |
2008-11-16 | when the aucat backend is used, sio_revents(3) should return POLLHUP | Alexandre Ratchov | |
if the connection to the server is lost. | |||
2008-11-11 | tweak previous; | Jason McIntyre | |
2008-11-11 | expose a volume knob in the sndio API: add sio_setvol(3) and | Alexandre Ratchov | |
sio_onvol(3) functions. The audio(4) backend tries to use the inputs.dac, outputs.dac, outputs.output and outputs.master controls (in this order). Add a sample file in regress/lib/libsndio/vol/vol.c | |||
2008-11-09 | typos; ok ratchov@ jmc@ | Christian Weisgerber | |
2008-11-09 | if the device is not started, make sio_pollfd() pass 0 events bitmap | Alexandre Ratchov | |
to the backend to avoid reporing the device as writable when it's stopped. Solves 100% CPU usage of apps poll()ing a stopped device. | |||
2008-11-09 | sio_revents() should return 0 poll events if the device isn't started | Alexandre Ratchov | |
2008-11-07 | expose the block size in the sndio API by making par->round writable | Alexandre Ratchov | |
and thus remove the ugly rate <-> block-size table from sio_setpar(3). Handle the block size negociation in aucat(1), since it has few constrains the code is overally simpler. ok jakemsr@, major crank suggested by deraadt@ | |||
2008-10-30 | only few (frequency, blocksize) pairs are compatible with both resampling | Alexandre Ratchov | |
and block based audio i/o (arithmetic constraints). For now round the frequency to a supported one, (ie 8kHz, 11.025kHz, 12kHz multiple), and get the the block size from a table. fixes problem reported by Robert <robert _at_ openbsd.pap.st> ok jakemsr | |||
2008-10-29 | document LIBSIO_DEBUG | Todd T. Fries | |
ok ratchov@ |