summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2008-11-20float math functions: copysignf and logbf. ok millert@Martynas Venckus
2008-11-20make both aucat(1) and audio(4) backends use the AUDIODEVICE envAlexandre 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-20move allocations between half a page and a page as close to the end ofOtto Moerbeek
the page as possible (i.e. make malloc option P a default). ok art@ millert@ krw@
2008-11-20Reduce the leeway malloc allows when moving allocations to the end ofOtto Moerbeek
a page to 0. P default will be changed in a separate commit. ok millert@ art@ krw@
2008-11-20while setting the block size, try smaller blocks half of the retries andAlexandre 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-17occures -> occurs;Jason McIntyre
2008-11-17allow aucat to run as server in play-only and record-only mode, soAlexandre Ratchov
it can be used on play-only, record-only and half-duplex devices. ok jakemsr
2008-11-16document that sio_revents() can return POLLHUPAlexandre Ratchov
2008-11-16when the aucat backend is used, sio_revents(3) should return POLLHUPAlexandre Ratchov
if the connection to the server is lost.
2008-11-13fix rcs tag.Jonathan Gray
From patrick keshishian <sidster@boxsoft.com>
2008-11-13To allow for easier playing with more strict settings introduceOtto Moerbeek
a separate symbolic constant for the leeway we allow when moving allocations towards the end of a page. No functional change.
2008-11-12avoid a few strlen calls for constant strings; prompted by tg; ok djm@Otto Moerbeek
2008-11-11Compile crt0.o, crtbegin.o and crtend.o with -fpie/-fPIE. This requiresKurt Miller
gcc with pie support to be built first. ok kettenis@
2008-11-11tweak previous;Jason McIntyre
2008-11-11expose a volume knob in the sndio API: add sio_setvol(3) andAlexandre 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-09typos; ok ratchov@ jmc@Christian Weisgerber
2008-11-09if the device is not started, make sio_pollfd() pass 0 events bitmapAlexandre 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-09typo fixed (overriden -> overridden)Tobias Stoeckmann
ok espie, jmc
2008-11-09sio_revents() should return 0 poll events if the device isn't startedAlexandre Ratchov
2008-11-09tweak previous;Jason McIntyre
2008-11-08Document the ddb.trigger sysctl.Chris Kuethe
feedback and ok mpf@, deraadt@
2008-11-07expose the block size in the sndio API by making par->round writableAlexandre 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-11-06if the freeprot flag (F) is set, do not do delayed frees for chunksOtto Moerbeek
(might catch errors closer to the trouble spot) and junk fill pages just before reuse instead of immediate (we can't access the page anyway) since we set PROT_NONE in the F case. ok djm@
2008-11-02fix markup of example line and description of G flag; partly from andOtto Moerbeek
ok jmc@
2008-11-02remove distinction between warnings and errors, ok deraadt@ djm@Otto Moerbeek
2008-10-31Pass a pointer to warn2 so the warn2 == IN_ALL would not be anTodd C. Miller
always-false condition. From FreeBSD (delphij).
2008-10-30only few (frequency, blocksize) pairs are compatible with both resamplingAlexandre 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-29if MALLOC_STATS is defined, record how many "cheap reallocs" wereOtto Moerbeek
tried and how many actually succeeded.
2008-10-29document LIBSIO_DEBUGTodd T. Fries
ok ratchov@
2008-10-28fix missing n in error messageAlexandre Ratchov
2008-10-28sio_initpar() is supposed to return void like the documentationJonathan Gray
says according to ratchov@. Make it so, and crank major. ok ratchov@
2008-10-27rename libsa to libsndioAlexandre Ratchov
requested by many, "just go for it" deraadt@
2008-10-26add some audio/libsa cross refs;Jason McIntyre
2008-10-26rename libsa.3 to sa_open.3 and create mlinks for all other functionsAlexandre Ratchov
requested by and help from jmc
2008-10-26recored -> recordedMarc Espie
2008-10-26add minimal server capability to aucat(1). When started in serverAlexandre Ratchov
mode, it listens on an unix socket and mixes/demultiplexes any number of full-duplex streams, doing necessary format conversions and resampling on the fly. programs can use the new libsa(3) library to play and record audio. The library provides a very simple API to connect to the audio server; if aucat(1) isn't running, it uses the audio(4) driver transparently instead.
2008-10-24some SEE ALSO additions from Ingo Schwarze;Jason McIntyre
2008-10-23Reword description of tm_zone and tm_gmtoff fieldsPhilip Guenthe
Prompted by millert@; ok millert@ jmc@
2008-10-22man page for Makefile.yp, and associated bits; from Ingo SchwarzeJason McIntyre
ok deraadt
2008-10-21build w/ USE_LOCALE. ok millert@Martynas Venckus
2008-10-21use decimal point from locale. ok millert@Martynas Venckus
2008-10-20oops, assign errno the right way. caught by david running regress testsOtto Moerbeek
2008-10-19document fts_open error handling; from Tim van der MolenJason McIntyre
ok millert
2008-10-19Document that strptime doesn't set the dst flag.Todd C. Miller
Based on a diff from Mark Bucc. OK jmc@
2008-10-17adjust asm to be pic compatible. okay kettenis@Kurt Miller
2008-10-13use calloc() instead of malloc() and memset()Kevin Lo
"look good" tedu@
2008-10-07- noieee_src: adapt complex versions of the functions it alreadyMartynas Venckus
supports (which is all, except the float ones) ok millert@
2008-10-06The recent change to bsd.own.mk to allow PICFLAG to be overridden madeKurt Miller
these previously ignored PICFLAG settings become active. Remove PICFLAG overrides to restore -fpic/-fPIC modes. In snaps for a week. okay drahn@
2008-10-06update to tzcode2008g from elsie.nci.nih.govTodd C. Miller
2008-10-05Fix conversion of numbers without an exponent.Mark Kettenis
ok martynas@