From owner-freebsd-multimedia Wed Apr 14 7:38:43 1999 Delivered-To: freebsd-multimedia@freebsd.org Received: from rnocserv.urc.ac.ru (rnocserv.urc.ac.ru [193.233.85.48]) by hub.freebsd.org (Postfix) with ESMTP id 9172015788 for ; Wed, 14 Apr 1999 07:38:07 -0700 (PDT) (envelope-from anton@urc.ac.ru) Received: from urc.ac.ru (Belle.urc.ac.ru [193.233.85.55]) by rnocserv.urc.ac.ru (8.8.8/8.8.8) with ESMTP id UAA26955 for ; Wed, 14 Apr 1999 20:35:21 +0600 (ESS) (envelope-from anton@urc.ac.ru) Message-ID: <3714A7A7.7A9587C9@urc.ac.ru> Date: Wed, 14 Apr 1999 20:35:20 +0600 From: Anton Voronin Organization: URC FREEnet X-Mailer: Mozilla 4.5 [ru] (X11; I; FreeBSD 3.1-STABLE i386) X-Accept-Language: ru MIME-Version: 1.0 To: freebsd-multimedia@freebsd.org Subject: "write denied, another writer is in" Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hello! I have OPL3-based soundcard (Genius SoundMaker) and use pcm driver. When a processes tries to access sound device which is busy with another process writing to it, (for example, when I'm cat'ing .au file > /dev/audio when mpg123 is playing an mp3 file) then I get very loud buzzz for a few seconds and the line "write denied, another writer is in" is printed on the console. Pcm driver prints it after unsuccessful write() if the flag SND_F_WRITING is set. It looks OK. But then why the loud dirty noise is produced? Could it be the driver's fault or is it a hardware problem? -anton P.S. Sometimes cat file.au >/dev/audio gets "stdout: device busy". In this case all is OK, and there's no any buzz. But more often it succeeds, and the buzz is produced. Shouldn't the device be always busy while another process is playing through it? -- Anton Voronin | Ural Regional Center of FREEnet, anton@urc.ac.ru | Southern Ural University, Chelyabinsk, Russia http://www.urc.ac.ru/~anton | Programmer & System Administrator To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message