From owner-freebsd-multimedia Fri Sep 5 11:29:18 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id LAA24086 for multimedia-outgoing; Fri, 5 Sep 1997 11:29:18 -0700 (PDT) Received: from xcf.berkeley.edu (scam.XCF.Berkeley.EDU [128.32.43.201]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id LAA24072 for ; Fri, 5 Sep 1997 11:29:05 -0700 (PDT) From: grady@scam.XCF.Berkeley.EDU Message-Id: <199709051829.LAA24072@hub.freebsd.org> Received: (qmail 1118 invoked from network); 5 Sep 1997 18:20:41 -0000 Received: from unknown (HELO scam.XCF.Berkeley.EDU) (127.0.0.1) by 127.0.0.1 with SMTP; 5 Sep 1997 18:20:41 -0000 To: Luigi Rizzo Cc: multimedia@freebsd.org Subject: Re: speed setting problem with SB16 on snd970904.tgz In-reply-to: Your message of Fri, 5 Sep 1997 18:53:17 +0200 (MET DST) <199709051653.SAA12295@labinfo.iet.unipi.it> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1112.873483639.1@scam.XCF.Berkeley.EDU> Date: Fri, 05 Sep 1997 11:20:41 -0700 Sender: owner-freebsd-multimedia@freebsd.org X-Loop: FreeBSD.org Precedence: bulk This works! (after :%s/d->speed/d->play_speed/g) Things are _almost_ wonderful. But now that I can hear everything, I'm noticing there are clicks in the output. They occur 4 or 5 times per second. I hear them both with timidity (playing on dspW) and catting a file to /dev/audio. I think they are occurring with absolutely regularity, although the music makes it hard to hear sometimes. When playing on timidity (playing a stero sound file) I note that the clicks seem to move across the stereo channels (ie. a given click may appear on either side, or on both). BTW, when I cat to /dev/audio, I see the message: default ioctl snd1 subdev 4 fn 0x402c7413 fail (although it does play successfully). Steven > static int > dsp_speed(snddev_info *d) > { > u_char tconst; > u_long flags; > int max_speed = 44100, speed = d->speed ; > > + if (d->bd_flags & BD_F_SB16) { > + RANGE (speed, 5000, 45000); > + d->speed = speed ; > + sb_cmd(d->io_base, 0x41); > + sb_cmd(d->io_base, d->speed >> 8 ); > + sb_cmd(d->io_base, d->speed & 0xff ); > + sb_cmd(d->io_base, 0x42); > + sb_cmd(d->io_base, d->speed >> 8 ); > + sb_cmd(d->io_base, d->speed & 0xff ); > + return speed ; > + } > /* > * only some models can do stereo, and only if not > * simultaneously using midi.