fix sndiod.1: 7680 vs 7860

2015-04-24 Thread David Coppa

Hi!

Code says 7860:

dcoppa@t420:/usr/src/usr.bin/sndiod$ grep 7860 *
sndiod.c:#define DEFAULT_BUFSZ  7860

While manpage says 7680:

dcoppa@t420:/usr/src/usr.bin/sndiod$ grep 7680 *
sndiod.1:The default is 7680 or twice the block size

Ciao,
David

Index: sndiod.1
===
RCS file: /cvs/src/usr.bin/sndiod/sndiod.1,v
retrieving revision 1.4
diff -u -p -u -p -r1.4 sndiod.1
--- sndiod.113 Aug 2014 08:42:46 -  1.4
+++ sndiod.124 Apr 2015 15:33:45 -
@@ -140,7 +140,7 @@ The buffer size of the audio device in f
 A frame consists of one sample for each channel in the stream.
 This is the number of frames that will be buffered before being played
 and thus controls the playback latency.
-The default is 7680 or twice the block size
+The default is 7860 or twice the block size
 .Pq Fl z ,
 if the block size is set.
 .It Xo



Re: fix sndiod.1: 7680 vs 7860

2015-04-24 Thread Alexandre Ratchov
On Fri, Apr 24, 2015 at 10:36:24AM -0600, David Coppa wrote:
 
 Hi!
 
 Code says 7860:
 
 dcoppa@t420:/usr/src/usr.bin/sndiod$ grep 7860 *
 sndiod.c:#define DEFAULT_BUFSZ7860
 
 While manpage says 7680:
 
 dcoppa@t420:/usr/src/usr.bin/sndiod$ grep 7680 *
 sndiod.1:The default is 7680 or twice the block size
 

oops, the man page is right and the code wrong, the intended value
was 7680, feel free to fix it. Both are close to each other, so no
audible difference.

But this reminds me that it may be time to start using less
conservative defaults, maybe 1920, or even 960.