[CM] Re: clicks using sndplay in OS X
Kjetil S. Matheussen
kjetil@ccrma.Stanford.EDU
Mon, 31 Oct 2005 16:58:50 -0800 (PST)
Jake Rundall:
>
> 3. pops and clicks when using sndplay
>
> This whole exploration reminded me of another general issue I've had with
> sndplay. Ever since I've been using clm (a little over a year only), I've found that
> I get pops and clicks when I use dac/sndplay to play back my files. Because of
> this, I almost always ended up playing back my files using QuickTime and there
> were no problems with pops and clicks. Now that I've set paplay (mentioned
> above in #2) as *clm-player*, I can play back my files in clm using dac and I
> don't have the problem either, so it would seem that the problem is specifically
> with sndplay (and probably with the way it works in OS X). Anyway, I'm very
> glad to have found a solution, but I'd like to be able to use sndplay to play back
> my files at some point. Also, I may not be the only person out there
> experiencing pops and clicks while using sndplay in OS X, so I wonder if
> something could be improved on (maybe by looking at how paplay plays files or
> something).
>
Coincidentally just looking at the sndplay.c file right now...
Can this be the cause of the pops and clicks on macoscx?
#if MAC_OSX
#define BUFFER_SIZE 256
#else
#if WIN32
/* this setting from Scott Middleton (actually used 8096) */
#define BUFFER_SIZE 8192
#else
#define BUFFER_SIZE 4096
#endif
#endif
(Why so small default buffer on macosx?)
Perhaps using the -bufsize option for sndplay helps?
--