Commits


CHANGES for 0.11


adjust copyright years


fix my email address used @openbsd.org initially by mistake and got copied around in most files. Since this has nothing to do officially with the OpenBSD project, use my own email address.


amused-UID is slightly more correct than amused-$UID


clarify that 'amused stop' stops the playback, not amused itself


fix mandoc formatting of alternations Cm on|off renders the pipe in bold too, use Cm on Ns | Ns Cm off to disambiguate.


sort flags; -v comes after -s


remove needless include of log.h


mention ALSA in the README


alsa: fix snd_pcm_writei usage snd_pcm_writei works in terms of audio frames, not buffer (bytes) length like snd_write does, so account for that. To do so, prepare a `bpf' (bytes per frame) multiplier in the configure stage and use it to convert back and forward between the buffer length and the number of frames. While here, also use snd_pcm_avail_update() to know how many frames may be written.


configure: allow to select the audio backend


add an audio implementation for ALSA it still doesn't work correctly, audio is very distorted, but at least there's some sound.


split out sndio-specific parts to audio_sndio.c This hides the libsndio bits behind a small audio_* API for which in the future we may provide multiple implementations.


use %u for unsigned int instead of %d


retry on sio_revents failure due to EAGAIN I've noticed that often during the suspend/resume cycle amused could die due to a "sndio hang-up" caused by an EAGAIN. This should prevent that and make sure we retry the operation.