CVS commit: src/usr.bin/audio/record

2024-03-20 Thread matthew green
Module Name:src Committed By: mrg Date: Wed Mar 20 20:19:31 UTC 2024 Modified Files: src/usr.bin/audio/record: record.c Log Message: match message & conversion function name properly. probably should make this into an array with two members. To generate a diff of this

CVS commit: src/usr.bin/audio/record

2024-03-20 Thread matthew green
Module Name:src Committed By: mrg Date: Wed Mar 20 20:19:31 UTC 2024 Modified Files: src/usr.bin/audio/record: record.c Log Message: match message & conversion function name properly. probably should make this into an array with two members. To generate a diff of this

CVS commit: src/usr.bin/audio/common

2024-03-20 Thread matthew green
Module Name:src Committed By: mrg Date: Wed Mar 20 20:18:39 UTC 2024 Modified Files: src/usr.bin/audio/common: wav.c Log Message: audio_wav_parse_hdr: handle zero-length data files again the previous clean up turns zero-length data into no data and thus an error, instead

CVS commit: src/usr.bin/audio/common

2024-03-20 Thread matthew green
Module Name:src Committed By: mrg Date: Wed Mar 20 20:18:39 UTC 2024 Modified Files: src/usr.bin/audio/common: wav.c Log Message: audio_wav_parse_hdr: handle zero-length data files again the previous clean up turns zero-length data into no data and thus an error, instead

CVS commit: src/usr.bin/audio/common

2024-03-13 Thread matthew green
Module Name:src Committed By: mrg Date: Thu Mar 14 00:00:31 UTC 2024 Modified Files: src/usr.bin/audio/common: wav.c Log Message: fix some sizeof() confusion. using "const char search[4]" as a function parameter means that "search" is actually a pointer type so "sizeof

CVS commit: src/usr.bin/audio/common

2024-03-13 Thread matthew green
Module Name:src Committed By: mrg Date: Thu Mar 14 00:00:31 UTC 2024 Modified Files: src/usr.bin/audio/common: wav.c Log Message: fix some sizeof() confusion. using "const char search[4]" as a function parameter means that "search" is actually a pointer type so "sizeof

CVS commit: src/usr.bin/audio/common

2024-03-11 Thread matthew green
Module Name:src Committed By: mrg Date: Tue Mar 12 00:34:38 UTC 2024 Modified Files: src/usr.bin/audio/common: wav.c Log Message: audioplay(1): handle mis-aligned RIFF chunks. put the code to find RIFF chunks into a new find_riff_chunk() function, and handle mis-aligned

CVS commit: src/usr.bin/audio/common

2024-03-11 Thread matthew green
Module Name:src Committed By: mrg Date: Tue Mar 12 00:34:38 UTC 2024 Modified Files: src/usr.bin/audio/common: wav.c Log Message: audioplay(1): handle mis-aligned RIFF chunks. put the code to find RIFF chunks into a new find_riff_chunk() function, and handle mis-aligned

CVS commit: src/usr.bin/audio/common

2024-03-11 Thread matthew green
Module Name:src Committed By: mrg Date: Mon Mar 11 23:12:29 UTC 2024 Modified Files: src/usr.bin/audio/common: wav.c Log Message: minor clean up in the RIFF/WAVE header checking. use memcmp() not strncmp() to check for "RIFF" and "WAVE". avoid endian convesion on

CVS commit: src/usr.bin/audio/common

2024-03-11 Thread matthew green
Module Name:src Committed By: mrg Date: Mon Mar 11 23:12:29 UTC 2024 Modified Files: src/usr.bin/audio/common: wav.c Log Message: minor clean up in the RIFF/WAVE header checking. use memcmp() not strncmp() to check for "RIFF" and "WAVE". avoid endian convesion on

CVS commit: src/usr.bin/audio/common

2024-03-11 Thread matthew green
Module Name:src Committed By: mrg Date: Mon Mar 11 19:17:52 UTC 2024 Modified Files: src/usr.bin/audio/common: wav.c Log Message: be sure to byte swap ext.len when checking/printing it. noted by rillig@. To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20

CVS commit: src/usr.bin/audio/common

2024-03-11 Thread matthew green
Module Name:src Committed By: mrg Date: Mon Mar 11 19:17:52 UTC 2024 Modified Files: src/usr.bin/audio/common: wav.c Log Message: be sure to byte swap ext.len when checking/printing it. noted by rillig@. To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20

CVS commit: src/usr.bin/audio/common

2024-03-07 Thread matthew green
Module Name:src Committed By: mrg Date: Fri Mar 8 06:57:59 UTC 2024 Modified Files: src/usr.bin/audio/common: libaudio.h wav.c Log Message: audio_wav_parse_hdr(): avoid buffer overreads and clean up reimplement most of this function using a new method of buffer

CVS commit: src/usr.bin/audio/common

2024-03-07 Thread matthew green
Module Name:src Committed By: mrg Date: Fri Mar 8 06:57:59 UTC 2024 Modified Files: src/usr.bin/audio/common: libaudio.h wav.c Log Message: audio_wav_parse_hdr(): avoid buffer overreads and clean up reimplement most of this function using a new method of buffer

CVS commit: src/usr.bin/audio/play

2024-03-03 Thread matthew green
Module Name:src Committed By: mrg Date: Mon Mar 4 06:29:35 UTC 2024 Modified Files: src/usr.bin/audio/play: audioplay.1 play.c Log Message: audioplay: add -n flag that doesn't write audio data. this will be used in an upcoming testsuite for the wav parser. To generate

CVS commit: src/usr.bin/audio/play

2024-03-03 Thread matthew green
Module Name:src Committed By: mrg Date: Mon Mar 4 06:29:35 UTC 2024 Modified Files: src/usr.bin/audio/play: audioplay.1 play.c Log Message: audioplay: add -n flag that doesn't write audio data. this will be used in an upcoming testsuite for the wav parser. To generate

CVS commit: src/usr.bin/audio/common

2024-02-27 Thread Andreas Gustafsson
Module Name:src Committed By: gson Date: Tue Feb 27 21:05:34 UTC 2024 Modified Files: src/usr.bin/audio/common: audio.c decode.c sun.c wav.c Log Message: Clean up lines containing only tabs. To generate a diff of this commit: cvs rdiff -u -r1.26 -r1.27

CVS commit: src/usr.bin/audio/common

2024-02-27 Thread Andreas Gustafsson
Module Name:src Committed By: gson Date: Tue Feb 27 21:05:34 UTC 2024 Modified Files: src/usr.bin/audio/common: audio.c decode.c sun.c wav.c Log Message: Clean up lines containing only tabs. To generate a diff of this commit: cvs rdiff -u -r1.26 -r1.27

CVS commit: src/usr.bin/audio

2024-02-27 Thread Andreas Gustafsson
Module Name:src Committed By: gson Date: Tue Feb 27 20:40:30 UTC 2024 Modified Files: src/usr.bin/audio/common: wav.c src/usr.bin/audio/record: record.c Log Message: Clean up lines containing only spaces. To generate a diff of this commit: cvs rdiff -u -r1.16

CVS commit: src/usr.bin/audio

2024-02-27 Thread Andreas Gustafsson
Module Name:src Committed By: gson Date: Tue Feb 27 20:40:30 UTC 2024 Modified Files: src/usr.bin/audio/common: wav.c src/usr.bin/audio/record: record.c Log Message: Clean up lines containing only spaces. To generate a diff of this commit: cvs rdiff -u -r1.16

CVS commit: src/usr.bin/audio/play

2023-06-30 Thread David H. Gutteridge
Module Name:src Committed By: gutteridge Date: Fri Jun 30 23:36:48 UTC 2023 Modified Files: src/usr.bin/audio/play: audioplay.1 Log Message: audioplay.1: fix sentence punctuation To generate a diff of this commit: cvs rdiff -u -r1.31 -r1.32

CVS commit: src/usr.bin/audio/play

2023-06-30 Thread David H. Gutteridge
Module Name:src Committed By: gutteridge Date: Fri Jun 30 23:36:48 UTC 2023 Modified Files: src/usr.bin/audio/play: audioplay.1 Log Message: audioplay.1: fix sentence punctuation To generate a diff of this commit: cvs rdiff -u -r1.31 -r1.32

CVS commit: src/usr.bin/audio/play

2023-04-15 Thread Michael van Elst
Module Name:src Committed By: mlelstv Date: Sat Apr 15 16:54:39 UTC 2023 Modified Files: src/usr.bin/audio/play: play.c Log Message: Revert accidentially committed part. The 'latency' report isn't ready to be useful. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/usr.bin/audio/play

2023-04-15 Thread Michael van Elst
Module Name:src Committed By: mlelstv Date: Sat Apr 15 16:54:39 UTC 2023 Modified Files: src/usr.bin/audio/play: play.c Log Message: Revert accidentially committed part. The 'latency' report isn't ready to be useful. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/usr.bin/audio

2023-04-15 Thread Michael van Elst
Module Name:src Committed By: mlelstv Date: Sat Apr 15 12:39:44 UTC 2023 Modified Files: src/usr.bin/audio/common: auconv.h wav.c src/usr.bin/audio/play: play.c src/usr.bin/audio/record: record.c Log Message: Add support for recording 24bit wav files. To

CVS commit: src/usr.bin/audio

2023-04-15 Thread Michael van Elst
Module Name:src Committed By: mlelstv Date: Sat Apr 15 12:39:44 UTC 2023 Modified Files: src/usr.bin/audio/common: auconv.h wav.c src/usr.bin/audio/play: play.c src/usr.bin/audio/record: record.c Log Message: Add support for recording 24bit wav files. To

CVS commit: src/usr.bin/audio/play

2023-02-13 Thread Valeriy E. Ushakov
Module Name:src Committed By: uwe Date: Mon Feb 13 13:35:45 UTC 2023 Modified Files: src/usr.bin/audio/play: audioplay.1 Log Message: audioplay(1): fix typo >From Jim Spath in PR/57228 To generate a diff of this commit: cvs rdiff -u -r1.30 -r1.31

CVS commit: src/usr.bin/audio/play

2023-02-13 Thread Valeriy E. Ushakov
Module Name:src Committed By: uwe Date: Mon Feb 13 13:35:45 UTC 2023 Modified Files: src/usr.bin/audio/play: audioplay.1 Log Message: audioplay(1): fix typo >From Jim Spath in PR/57228 To generate a diff of this commit: cvs rdiff -u -r1.30 -r1.31

CVS commit: src/usr.bin/audio/play

2022-05-14 Thread matthew green
Module Name:src Committed By: mrg Date: Sun May 15 02:16:06 UTC 2022 Modified Files: src/usr.bin/audio/play: play.c Log Message: fix verbose log for 64 bit float To generate a diff of this commit: cvs rdiff -u -r1.60 -r1.61 src/usr.bin/audio/play/play.c Please note

CVS commit: src/usr.bin/audio/play

2022-05-14 Thread matthew green
Module Name:src Committed By: mrg Date: Sun May 15 02:16:06 UTC 2022 Modified Files: src/usr.bin/audio/play: play.c Log Message: fix verbose log for 64 bit float To generate a diff of this commit: cvs rdiff -u -r1.60 -r1.61 src/usr.bin/audio/play/play.c Please note

CVS commit: src/usr.bin/audio/record

2022-01-08 Thread Michael van Elst
Module Name:src Committed By: mlelstv Date: Sun Jan 9 06:33:13 UTC 2022 Modified Files: src/usr.bin/audio/record: record.c Log Message: Let user gracefully abort recording with SIGINT. To generate a diff of this commit: cvs rdiff -u -r1.55 -r1.56

CVS commit: src/usr.bin/audio/record

2022-01-08 Thread Michael van Elst
Module Name:src Committed By: mlelstv Date: Sun Jan 9 06:33:13 UTC 2022 Modified Files: src/usr.bin/audio/record: record.c Log Message: Let user gracefully abort recording with SIGINT. To generate a diff of this commit: cvs rdiff -u -r1.55 -r1.56

CVS commit: src/usr.bin/audio/play

2019-11-12 Thread Thomas Klausner
Module Name:src Committed By: wiz Date: Tue Nov 12 12:50:30 UTC 2019 Modified Files: src/usr.bin/audio/play: audioplay.1 Log Message: Remove list of audio drivers, moved to audio(4). To generate a diff of this commit: cvs rdiff -u -r1.28 -r1.29

CVS commit: src/usr.bin/audio/play

2019-11-12 Thread Thomas Klausner
Module Name:src Committed By: wiz Date: Tue Nov 12 12:50:30 UTC 2019 Modified Files: src/usr.bin/audio/play: audioplay.1 Log Message: Remove list of audio drivers, moved to audio(4). To generate a diff of this commit: cvs rdiff -u -r1.28 -r1.29

CVS commit: src/usr.bin/audio/play

2019-11-11 Thread Joerg Sonnenberger
Module Name:src Committed By: joerg Date: Mon Nov 11 15:40:42 UTC 2019 Modified Files: src/usr.bin/audio/play: play.c Log Message: Spell the largest 32bit signed value as INT32_MAX. Explicitly cast to float, because it is not precisely representable. To generate a diff

CVS commit: src/usr.bin/audio/play

2019-11-11 Thread Joerg Sonnenberger
Module Name:src Committed By: joerg Date: Mon Nov 11 15:40:42 UTC 2019 Modified Files: src/usr.bin/audio/play: play.c Log Message: Spell the largest 32bit signed value as INT32_MAX. Explicitly cast to float, because it is not precisely representable. To generate a diff

CVS commit: src/usr.bin/audio/play

2019-11-11 Thread Thomas Klausner
Module Name:src Committed By: wiz Date: Mon Nov 11 11:04:15 UTC 2019 Modified Files: src/usr.bin/audio/play: audioplay.1 Log Message: Fix a typo. Fix some xrefs, comment out references to non-existing man pages. To generate a diff of this commit: cvs rdiff -u -r1.27

CVS commit: src/usr.bin/audio/play

2019-11-11 Thread Thomas Klausner
Module Name:src Committed By: wiz Date: Mon Nov 11 11:04:15 UTC 2019 Modified Files: src/usr.bin/audio/play: audioplay.1 Log Message: Fix a typo. Fix some xrefs, comment out references to non-existing man pages. To generate a diff of this commit: cvs rdiff -u -r1.27

CVS commit: src/usr.bin/audio/play

2019-11-09 Thread matthew green
Module Name:src Committed By: mrg Date: Sat Nov 9 12:54:34 UTC 2019 Modified Files: src/usr.bin/audio/play: play.c Log Message: copyright maint. To generate a diff of this commit: cvs rdiff -u -r1.58 -r1.59 src/usr.bin/audio/play/play.c Please note that diffs are not

CVS commit: src/usr.bin/audio/play

2019-11-09 Thread matthew green
Module Name:src Committed By: mrg Date: Sat Nov 9 12:54:34 UTC 2019 Modified Files: src/usr.bin/audio/play: play.c Log Message: copyright maint. To generate a diff of this commit: cvs rdiff -u -r1.58 -r1.59 src/usr.bin/audio/play/play.c Please note that diffs are not

CVS commit: src/usr.bin/audio

2019-11-09 Thread matthew green
Module Name:src Committed By: mrg Date: Sat Nov 9 12:46:44 UTC 2019 Modified Files: src/usr.bin/audio/common: audio.c libaudio.h sun.c wav.c src/usr.bin/audio/play: audioplay.1 play.c Log Message: add support for playing IEEE float32 and float64 RIFF WAVE samples

CVS commit: src/usr.bin/audio

2019-11-09 Thread matthew green
Module Name:src Committed By: mrg Date: Sat Nov 9 12:46:44 UTC 2019 Modified Files: src/usr.bin/audio/common: audio.c libaudio.h sun.c wav.c src/usr.bin/audio/play: audioplay.1 play.c Log Message: add support for playing IEEE float32 and float64 RIFF WAVE samples

Re: CVS commit: src/usr.bin/audio/record

2011-09-22 Thread Marc Balmer
Am 21.09.2011 um 16:32 schrieb Christos Zoulas: Module Name: src Committed By: christos Date: Wed Sep 21 14:32:14 UTC 2011 Modified Files: src/usr.bin/audio/record: record.c Log Message: PR/45384: Henning Petersen: Swapped arguments in lseek To generate a diff of

Re: CVS commit: src/usr.bin/audio/record

2011-09-22 Thread Christos Zoulas
In article dbe1242c-f99e-4b75-b356-516245aca...@msys.ch, Marc Balmer m...@msys.ch wrote: if (outfd == STDOUT_FILENO) return; -if (lseek(outfd, SEEK_SET, 0) 0) +if (lseek(outfd, (off_t)0, SEEK_SET) == (off_t)-1) err(1, could not seek to start of file

Re: CVS commit: src/usr.bin/audio/record

2011-09-22 Thread Marc Balmer
Am 22.09.2011 um 19:34 schrieb Christos Zoulas: In article dbe1242c-f99e-4b75-b356-516245aca...@msys.ch, Marc Balmer m...@msys.ch wrote: if (outfd == STDOUT_FILENO) return; - if (lseek(outfd, SEEK_SET, 0) 0) + if (lseek(outfd, (off_t)0, SEEK_SET) == (off_t)-1)

Re: CVS commit: src/usr.bin/audio/record

2011-09-22 Thread David Laight
On Thu, Sep 22, 2011 at 09:28:56PM +0200, Marc Balmer wrote: Am 22.09.2011 um 19:34 schrieb Christos Zoulas: In article dbe1242c-f99e-4b75-b356-516245aca...@msys.ch, Marc Balmer m...@msys.ch wrote: if (outfd == STDOUT_FILENO) return; - if (lseek(outfd, SEEK_SET, 0)