Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tlug: SBAWE32 vs. soundfiles



--------------------------------------------------------
tlug note from Craig Oda <craig@example.com>
--------------------------------------------------------
On Fri, 27 Jun 1997, Totoro wrote:

riley>I run a "cat" to the /dev/audio it takes a couple of seconds for the
riley>process and then returns to the prompt. Just like all is well but no
riley>sound comes out.

When you do:

 # cat /dev/sndstat

do you get something like:

cow:/home/craig# cat /dev/sndstat |more
Sound Driver:3.5.4-960630 (Sun Jun 8 13:30:23 JST 1997 root,
Linux cow 2.0.30 #4 Sun Jun 8 12:56:05 JST 1997 i586 unknown)
Kernel: Linux cow 2.0.30 #4 Sun Jun 8 12:56:05 JST 1997 i586
Config options: 282000

Installed drivers: 
Type 21: CS4232
Type 22: CS4232 MIDI

Card config: 
(CS4232 MIDI at 0x330 irq 5 drq 0)
CS4232 at 0x530 irq 9 drq 0,1

Audio devices:
0: CS4232 (CS4232) (DUPLEX)

Synth devices:

Midi devices:
0: MPU-401 1.5A Midi interface #1

Timers:
0: System clock
1: CS4232 (CS4232)
2: MPU-401 Timer

Mixers:
0: CS4232 (CS4232)

  -----------

Since I load my sound as a module, I get

cow:/home/craig# lsmod
Module         Pages    Used by
sound             23            0
lp                 2            0
vfat               3            0
fat                6    [vfat]  0


Note, that the sound module is loaded.


In /proc/interrupts, does it show your sound?

cow:/proc# cat interrupts 
 0:      48958   timer
 1:       1428   keyboard
 2:          0   cascade
 3:       2307 + serial
 5:          1   mpu401
 9:          1   SoundPort
10:       1750   PCnet/ISA 79C960
11:          1 + Mitsumi CD
13:          1   math error
14:      16022 + ide0

Try to record some sound as a test:

 # dd bs=8k count=4 < /dev/audio > helloworld.au

Press return and say, "Hello, World," into your microphone a few
times.

Then do a 

 # cat helloworld.au > /dev/audio


In your /proc/devices, is your sound listed?

cow:/proc# cat devices 
Character devices:
 1 mem
 2 pty
 3 ttyp
 4 ttyp
 5 cua
 6 lp
 7 vcs
14 sound

Block devices:
 3 ide0
23 mcd



What are the protections on your /dev/audio?

Here are mine:

cow:/proc# ls -l /dev/audio
crw-rw----   1 root     audio     14,   4 Apr  4 21:54 /dev/audio
cow:/proc# 


Also, if you are manipulating the audio device from anything other
than root, make sure that the user is in group audio (in my case.  your
group may be different).

cow:~$ id
uid=1000(craig) gid=1000(craig)
groups=1000(craig),1(daemon),7(lp),29(audio),33(www-data)
cow:~$ 


-------------
"Knowledge is the air and light of civilization.  Transform it and you
transform all else."
Craig Oda 	craig@example.com	
TWICS - Japan's First Public-Access Internet System, 
   TWICS - IEC Building, 1-21 Yotsuya, Shinjuku-ku, Tokyo 160 JAPAN
Main Reception: 03-3351-5977	Fax: +81-3-3353-6096
Customer Service: 3351-5481   Corporate Sales/Support: 3351-8452

-----------------------------------------------------------------
a word from the sponsor will appear below
-----------------------------------------------------------------
The TLUG mailing list is proudly sponsored by TWICS - Japan's First
Public-Access Internet System.  Now offering 20,000 yen/year flat
rate Internet access with no time charges.  Full line of corporate
Internet and intranet products are available.   info@example.com
Tel: 03-3351-5977   Fax: 03-3353-6096


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links