need help on play sound files to /dev/{audio,sound}

need help on play sound files to /dev/{audio,sound}

Post by Raymond W » Wed, 11 Oct 1995 04:00:00



Problem:

1. play and xplay won't play WAV files.

(38) % play chord.wav
Playing: chord.wav (full-song)
Mono-Sample, speed: 22050 Hz, 8 Bit per Sample
Can't get blocksize
^^^^^^^^^^^^^^^^^^

What I have:

1. Linux kernel recognizes my SB sound card at bootup time.

snd2 <SoundBlaster Pro 4.13> at 0x220 irq 5 drq 1
snd6 <SoundBlaster 16 4.13> at 0x220 irq 5 drq 5

2. In /dev/, I have:

crw-rw-rw-   1 root     sys       14,   4 Oct 10 14:40 audio
-rw-r--r--   1 root     root            0 Jun 11 01:20 sound  

3. I CAN play AU sound files by doing

% cat bluejay2.au > /dev/audio

but not this

% cat bluejay2.au > /dev/sound

What does the message "Can't get blocksize" mean? How can I fix it?  Thanks.
--
Raymond W. Yu

 
 
 

need help on play sound files to /dev/{audio,sound}

Post by sj » Thu, 12 Oct 1995 04:00:00


        >1. play and xplay won't play WAV files.
        >(38) % play chord.wav
        >Playing: chord.wav (full-song)
        >Mono-Sample, speed: 22050 Hz, 8 Bit per Sample
        >Can't get blocksize
        >^^^^^^^^^^^^^^^^^^

   You must be using version 2.0 or higher of the sound driver.  The
ioctl() call has changes from pre-2.0 to 2.0.

   Look for a patch file at sunsite in the same directory (I forget
the name specifically, but it is something like wavplay-0.21-patch)
and apply it.   (i.e. cd /the/build/directory; patch < wavplay-0.21-patch ;
make).

   It will compile and work like a champ.  (I just went through this two
nights ago, so it is still fresh.)

--
--- Steve McCarthy --------------------- Author RightOn 2.4 for Windows -----

 Support open standards,  |    PGP     | http://www.halcyon.com/htbin/righton
 just say NO to Netscape  | public key | http://www.halcyon.com/htbin/sjm

 
 
 

need help on play sound files to /dev/{audio,sound}

Post by Nils Hamme » Fri, 13 Oct 1995 04:00:00


Re: need help on play sound files to /dev/{audio,sound}

I hope I can help you with this:

Since your /dev/sound file is no special device file, you won't be able
to play sounds by executing
     cat irgendwas.wav > /dev/sound

Try creating a link from /dev/sound to /dev/audio or create a special
device file via the MKDEV script (or similar) in your /dev directory.

 
 
 

need help on play sound files to /dev/{audio,sound}

Post by Chevalier Philip » Sat, 14 Oct 1995 04:00:00



Quote:>Problem:
>1. play and xplay won't play WAV files.
>(38) % play chord.wav
>Playing: chord.wav (full-song)
>Mono-Sample, speed: 22050 Hz, 8 Bit per Sample
>Can't get blocksize
>^^^^^^^^^^^^^^^^^^
>What I have:
>1. Linux kernel recognizes my SB sound card at bootup time.
>snd2 <SoundBlaster Pro 4.13> at 0x220 irq 5 drq 1
>snd6 <SoundBlaster 16 4.13> at 0x220 irq 5 drq 5
>2. In /dev/, I have:
>crw-rw-rw-   1 root     sys       14,   4 Oct 10 14:40 audio
>-rw-r--r--   1 root     root            0 Jun 11 01:20 sound  

Your file "sound" is not a device...and it's size is 0..not surprising it
doesn't work...

remove it and make it a link to audio, like :

rm /dev/sound ; ln -s /dev/audio /dev/sound

Hope this will work..

Phil.