Date: Fri, 05 Sep 1997 11:20:41 -0700 From: grady@scam.XCF.Berkeley.EDU To: Luigi Rizzo <luigi@labinfo.iet.unipi.it> Cc: multimedia@freebsd.org Subject: Re: speed setting problem with SB16 on snd970904.tgz Message-ID: <199709051829.LAA24072@hub.freebsd.org> In-Reply-To: Your message of Fri, 5 Sep 1997 18:53:17 %2B0200 (MET DST) <199709051653.SAA12295@labinfo.iet.unipi.it>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199709051829.LAA24072>
