* opening /dev/sequencer, in perl.
@ 1998-12-07 20:02 Etienne Grossmann
0 siblings, 0 replies; only message in thread
From: Etienne Grossmann @ 1998-12-07 20:02 UTC (permalink / raw)
To: linux-sound
Hello, I have been trying to open /dev/sequencer for writing : In C,
I do :
fd = open("/dev/sequencer", O_WRONLY))
and the filehandle can be manipulated (carefully) to produce sound. In
perl, I have tried :
try1:
open(FD,">/dev/sequencer") or die "NOPE\n";
print FD "";
try2:
use IO::File;
$fh = new IO::File "/dev/sequencer", O_WRONLY;
print "NOPE\n" unless defined($fh);
try3:
use Fcntl;
sysopen(FD,"/dev/sequencer",O_WRONLY) ;
print FD "" ;
but none of them work.
Would anyone have an explanation to my troubles?
Etienne
ps : I use perl 5.005, Linux kernel is 2.0.34 (Debian 2.0). Sound card
is soundblaster compatible.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1998-12-07 20:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-12-07 20:02 opening /dev/sequencer, in perl Etienne Grossmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox