From owner-freebsd-questions Mon May 20 0:18:25 2002 Delivered-To: freebsd-questions@freebsd.org Received: from zeus.di.uoa.gr (zeus.di.uoa.gr [195.134.65.4]) by hub.freebsd.org (Postfix) with ESMTP id 00EE437B409 for ; Mon, 20 May 2002 00:18:18 -0700 (PDT) Received: from chania.di.uoa.gr (chania.di.uoa.gr [195.134.67.214]) by zeus.di.uoa.gr (8.12.1/8.12.1) with ESMTP id g4K7I0S8017208 for ; Mon, 20 May 2002 10:18:00 +0300 (EEST) Received: from chania.di.uoa.gr (localhost [127.0.0.1]) by chania.di.uoa.gr (8.12.1/8.12.1) with ESMTP id g4K7Htxu025840 for ; Mon, 20 May 2002 10:17:55 +0300 (EET DST) Received: from localhost (tnu@localhost) by chania.di.uoa.gr (8.12.1/8.12.1/Submit) with ESMTP id g4K7HsMT025837 for ; Mon, 20 May 2002 10:17:54 +0300 (EET DST) Date: Mon, 20 May 2002 10:17:53 +0300 (EET DST) From: tnu@chania.di.uoa.gr To: freebsd-questions@freebsd.org Subject: 4.6-PRERELEASE "Weird" Sound problems Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-MailScanner: Found to be clean Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi all. I 've come up against a rather "irritating" issue regarding my sound card and several sound applications. I cannot play sound files that have the following format: 11025Hz, 16(LSB), Mono. TO be exact, the only thing that I hear instead of the recorded content is a repeated sound reminding footsteps whose total length is equal to the proper length of the wave file. That happens with the "play" program (play is a front-end for sox). I tried to play the sample file with xwave, but it "hungs" completely. I can record at the specific format via "Save Audio As..." of the fxtv application, but: When I try to record (from the console) with "rec -r 11025 test.wav", I notice two things: 1. The size of test.wav refuses to grow at all (It remains at 0 bytes). 2. The "recording" can't be stopped with SIGINT (normal way) but only with SIGTERM ("impolite" way). The funny (whatever..) thing is that all the other possible combinations work in a happily normal way. Has any of you come up against such a weird problem? [ I hope the following are useful information. ] $ file /tmp/sample.wav /tmp/sample.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 11025 Hz $ uname -r 4.6-PRERELEASE $ dmesg | grep pcm pcm0: port 0xd800-0xd83f irq 9 at device 10.0 on pci2 $ cat /dev/sndstat FreeBSD Audio Driver (newpcm) Installed devices: pcm0: at io 0xd800 irq 9 (1p/1r/0v channels duplex) $ ls -l /dev/dsp* lrwxrwxrwx 1 root wheel 4 May 18 21:15 /dev/dsp -> dsp0 lrwxrwxrwx 1 root wheel 6 May 18 21:15 /dev/dsp0 -> dsp0.0 crw-rw-rw- 1 root wheel 30, 3 May 18 23:51 /dev/dsp0.0 crw-rw-rw- 1 root wheel 30, 0x00010003 May 18 21:15 /dev/dsp0.1 crw-rw-rw- 1 root wheel 30, 0x00020003 May 18 21:15 /dev/dsp0.2 crw-rw-rw- 1 root wheel 30, 0x00030003 May 18 21:15 /dev/dsp0.3 lrwxrwxrwx 1 root wheel 5 May 18 21:15 /dev/dspW -> dspW0 lrwxrwxrwx 1 root wheel 7 May 18 21:15 /dev/dspW0 -> dspW0.0 crw-rw-rw- 1 root wheel 30, 5 May 18 21:15 /dev/dspW0.0 crw-rw-rw- 1 root wheel 30, 0x00010005 May 18 21:15 /dev/dspW0.1 crw-rw-rw- 1 root wheel 30, 0x00020005 May 18 21:15 /dev/dspW0.2 crw-rw-rw- 1 root wheel 30, 0x00030005 May 18 21:15 /dev/dspW0.3 $ mpg123 -vvv one-nice-song.mp3 [snip] Audio capabilities: | s16 | u16 | u8 | s8 | ulaw | alaw | -------------------------------------------------------- 8000 | M/S | M/S | M/S | M/S | M/S | M/S | 11025 | M/S | M/S | M/S | M/S | M/S | M/S | 12000 | M/S | M/S | M/S | M/S | M/S | M/S | 16000 | M/S | M/S | M/S | M/S | M/S | M/S | 22050 | M/S | M/S | M/S | M/S | M/S | M/S | 24000 | M/S | M/S | M/S | M/S | M/S | M/S | 32000 | M/S | M/S | M/S | M/S | M/S | M/S | 44100 | M/S | M/S | M/S | M/S | M/S | M/S | 48000 | M/S | M/S | M/S | M/S | M/S | M/S | [snip] $ Note that I recently did a "buildworld" and I didn't have the problem with 4.5-STABLE. Thank you in advance. [ As soon I get this fixed, I can go on trying to play two mp3's simultaneously... ] -- [ Quote #14 from startrek collection. ] Another war ... must it always be so? How many comrades have we lost in this way? ... Obedience. Duty. Death, and more death ... -- Romulan Commander, "Balance of Terror", stardate 1709.2 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message