D
Dave Saville
I am playing with a raspberry pi with some generated stereo piped to
pacat. This is for a larger project but for this I just have a sine
wave that moves across the speakers for a few seconds. It stutters so
I wondered if there is any buffering going on when you open like so:
my $pacat = sprintf "| pacat --................
open my $PACAT, $pacat or die "Can't open $pacat $!";
If there is buffering how does one turn it off?
my $old_fh = select $PACAT; $| = 1; select $old_fh;
Does not make any difference. Of course it may be something completely
different causing the stutter - but things like mplayer work fine with
no stutter.
TIA
pacat. This is for a larger project but for this I just have a sine
wave that moves across the speakers for a few seconds. It stutters so
I wondered if there is any buffering going on when you open like so:
my $pacat = sprintf "| pacat --................
open my $PACAT, $pacat or die "Can't open $pacat $!";
If there is buffering how does one turn it off?
my $old_fh = select $PACAT; $| = 1; select $old_fh;
Does not make any difference. Of course it may be something completely
different causing the stutter - but things like mplayer work fine with
no stutter.
TIA