Quote:
Originally Posted by crep
Both laptops play sound properly.
When I open and read /dev/dsp, however, I simply get silence. /dev/dsp gives values between 0 and 255 (its an 8 bit interface), and when I read it the values are always 127-128, with no variation.
|
I'm having the same problem here, using Gentoo (~x86).
For example, I play a sound file:
# play test.wav
and I can hear it fine. Then from another terminal, while it is still playing I do:
# cat /dev/dsp > test.raw
...then after a few seconds I ^C.
test.raw is 80k or so, should have some audio data. But when I cat it back to /dev/dsp...nothing but silence.
Looking at the output:
# python -c "f=open('test.raw', 'rb'); print([ord(c) for c in f.read()]); f.close()"
[128, 128, 128, ..., 128]
:\
vsound doesn't work, either:
# vsound -f test.wav mpg321 -o oss test.mp3
About to start the application. The output will not be available
until the application exits.
...
Missing file ./vsound30269.au.
This means that the libvsound wrapper did not work correctlty.
...
My sndstat looks like:
# cat /proc/asound/oss/sndstat
Sound Driver:3.8.1a-980706 (ALSA v1.0.11rc4 emulation code)
Kernel: Linux SageWare 2.6.17-gentoo-r6 #1 PREEMPT Sun Aug 27 01:36:53 CDT 2006 i686
Config options: 0
Installed drivers:
Type 10: ALSA emulation
Card config:
C-Media PCI CMI8738-MC6 (model 55) at 0xe000, irq 20
Audio devices:
0: C-Media PCI DAC/ADC (DUPLEX)
Synth devices: NOT ENABLED IN CONFIG
Midi devices: NOT ENABLED IN CONFIG
Timers:
7: system timer
Mixers:
0: CMedia PCI
Regards,
Jordan