summaryrefslogtreecommitdiff
path: root/usr.bin/sndiod
AgeCommit message (Collapse)Author
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
2014-11-21Don't forget to transmit the xrun attribute in GETPAR messages. FoundAlexandre Ratchov
by stu@, thanks.
2014-10-12Don't assume that right-shift sign-extends integers.Alexandre Ratchov
2014-10-08check audio parameters returned by the audio drivers,Alexandre Ratchov
and nicely report driver bugs rather than crashing/misbehaving later if parameters aren't consistent.
2014-08-13Spelling - "alignment" not "alignement". ok ratchovNicholas Marriott
2014-06-02fix uninitialized sock->port variable, causing crashes in certainAlexandre Ratchov
error handling code paths (ex. wrong/unsupported mode).
2014-06-02log attach position only if log_level >= 0,Alexandre Ratchov
remove empty dev_mon_snoop() function
2014-03-17Drop dev_clear(), merge dev_full_cycle() and dev_empty_cycle()Alexandre Ratchov
into dev_cycle(). No behavior change.
2014-03-17fix wrong file status stringsAlexandre Ratchov
2014-03-17typo in debug printfAlexandre Ratchov
2014-03-17unbreak monitoring mode, which was shifted in time by 1 blockAlexandre Ratchov
2014-03-07remove unused "delta" argument from onmove callbacksAlexandre Ratchov
2014-03-07remove unused mmc start/stop/relocate call-backs as they don'tAlexandre Ratchov
make sense for clients and are handled through midi anyway
2014-03-05- properly set initial position: fixes incorrect position reportingAlexandre Ratchov
on busy machines configured to use tiny block sizes - run play and rec cycle in the same loop. No behavior change, but the code is much simpler this way.
2014-03-05remove unused "autostart" featureAlexandre Ratchov
2014-03-05remove (unused) square tone generatorAlexandre Ratchov
2014-03-05Check that socket is writable before attempting to write dataAlexandre Ratchov
packets.
2014-03-05remove unused varAlexandre Ratchov
2014-02-08copy the correct number of channels in join/expandAlexandre Ratchov
2014-02-08remove debug bits: dont fill with junk unused channelsAlexandre Ratchov
2014-02-08use the correct integer width in calls to AMSG_ISSET()Alexandre Ratchov
2013-12-31Drop blocks and instert silence immediately in the socket rx/tx codeAlexandre Ratchov
path rather than waiting for the next device cycle. This fixes deadocks when the slot uses the SIO_SYNC mode.
2013-12-31round client block size to nearest possbleAlexandre Ratchov
2013-12-20set the target device number of standard system exclusiveAlexandre Ratchov
messages to 0x7f (aka "any device").
2013-11-21use -Wmissing-prototypesAlexandre Ratchov
2013-11-19move -Wxxx flags from CFALGS to COPTSAlexandre Ratchov
suggested by deraadt
2013-11-18add missing prototypesAlexandre Ratchov
2013-09-28Fix condition to check if a midi port is referenced. Remove unused bits.Alexandre Ratchov
2013-05-12use -q options order as order of exposed midi portsAlexandre Ratchov
2013-05-12Fix reversed condition to check if a midi port is referenced,Alexandre Ratchov
causing sometimes the port to be closed prematurely
2013-05-12get NULL definition from stddef.hAlexandre Ratchov
2013-05-05Initialize channel ranges of new slots to full sub-device channels.Alexandre Ratchov
Fixes wrong channel mappings when the client specifies no channels. Found by Dimitri Sokolyuk <sokolyuk at gmail.com>, thanks!
2013-05-05Initialize client rate. Fixes crashes when the client doesn't set theAlexandre Ratchov
rate. Problem reported and analyzed by Dimitri Sokolyuk <sokolyuk at gmail.com>. Thanks!
2013-03-13don't display warnings if accept() returns ECONNABORTED orAlexandre Ratchov
EWOULDBLOCK, as we do in other daemons
2013-02-26Encoding conversion buffer size is one stream block, not one deviceAlexandre Ratchov
block. Fix crashes occuring when the client sample frequency is much larger than the device sample frequency. Found by Alexander Polakov, thanks. ok deraadt@
2013-02-01if a device doesn't respond within two seconds, then just close itAlexandre Ratchov
and drop all connections. This is shameful but unfortunately it's still necessery on certain MP machines and audio driver combinations
2012-12-20readjust midi flow control after consuming input dataAlexandre Ratchov
2012-12-07move log_level in utils.h with other logging bitsAlexandre Ratchov
2012-12-06set port = NULL for new connctions, fixes crashesAlexandre Ratchov
found by brad
2012-12-02simpler text; ok ratchovJason McIntyre
2012-12-01remove misleading XXXs and TODOsAlexandre Ratchov
2012-12-01Parse "-m mode1,mode2,.. " strings strictly.Alexandre Ratchov
2012-11-30drain midi port output buffer before closing it ensuring the lastAlexandre Ratchov
few bytes are not lost
2012-11-30use the hold flag for midi ports as wellAlexandre Ratchov
2012-11-30For MIDI ports, use the same open/close logic as for audio devices:Alexandre Ratchov
drop clients using it when the port is closed (eg. umidi disconnected) and try to reopen it whenever a new client connects.
2012-11-30When the audio device is closed, mark it as closed beforeAlexandre Ratchov
dropping connections otherwise clients may try to drain their buffer and would attempt to reopen the device
2012-11-30make DEV_xxx contiguousAlexandre Ratchov
2012-11-30Process incoming MIDI data on the fly rather than using anAlexandre Ratchov
input fifo; besides being simpler, this way there's no data to drain when a connection is dropped.
2012-11-30don't exit if midi control port is destroyed (it never is)Alexandre Ratchov
2012-11-23space required between macro args and punctuation;Jason McIntyre