From owner-freebsd-multimedia Tue Oct 28 14:42:57 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id OAA27296 for multimedia-outgoing; Tue, 28 Oct 1997 14:42:57 -0800 (PST) (envelope-from owner-freebsd-multimedia) Received: from gaia.coppe.ufrj.br (cisigw.coppe.ufrj.br [146.164.5.200]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id OAA27282 for ; Tue, 28 Oct 1997 14:42:45 -0800 (PST) (envelope-from jonny@coppe.ufrj.br) Received: (from jonny@localhost) by gaia.coppe.ufrj.br (8.8.7/8.8.7) id UAA28762; Tue, 28 Oct 1997 20:41:59 -0200 (EDT) (envelope-from jonny) From: Joao Carlos Mendes Luis Message-Id: <199710282241.UAA28762@gaia.coppe.ufrj.br> Subject: Re: GUS works! snd971022.tgz In-Reply-To: <199710230643.HAA26071@labinfo.iet.unipi.it> from Luigi Rizzo at "Oct 23, 97 07:43:25 am" To: luigi@labinfo.iet.unipi.it (Luigi Rizzo) Date: Tue, 28 Oct 1997 20:41:59 -0200 (EDT) Cc: multimedia@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-multimedia@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk #define quoting(Luigi Rizzo) // Just a brief note to tell that I now have guspnp support in my audio // driver. The relevant bits are available from // // http://www.iet.unipi.it/~luigi/snd971022.tgz // // there are still a few things to fix (e.g. some GUS cards seem to // produce a DC offset which can cause problems in vat -- i have a // fix contributed by Brad Karp which should go in the next snap; // also, on the card I have ulaw/alaw is still not working) but overall // the code works pretty well. Does not work for me. It can finally detect and initialize the chipset, but the audio sound is really bad. I got a 8000Hz U-Law file and cat'ed it to /dev/audio1. I could recognize the sound, but it had a signal/noise ratio, humm, very small. :) Got the same file (which sounds good with Amancio's driver) and converted it do 8bit signed and 16bit signed, both 22050 HZ. The 8 bit one sounded the same. The 16bit one made no sense at all. I used pcmio to play these. Also, I tried an old program of mine, to record and play some sounds. I found an incompatibility with OSS ioctl's. The ioctl to set stereo mode or number of channels (SNDCTL_DSP_STEREO ?) receives a -1 argument if you just want to look at the current state. This does not work in your driver. Last, but not least, I took some look at the problem with xmmix (the best one in my opinion) and found it to be an ioctl to detect if the mixer can select more than one input at a time or not. In OSS it's the SOUND_MIXER_READ_CAPS. This should be an easy one to implement. In OSS, the SoundBlaster driver takes 6 lines. Luigi ? :) Jonny -- Joao Carlos Mendes Luis jonny@gta.ufrj.br +55 21 290-4698 jonny@coppe.ufrj.br Universidade Federal do Rio de Janeiro UFRJ/COPPE/CISI PGP fingerprint: 29 C0 50 B9 B6 3E 58 F2 83 5F E3 26 BF 0F EA 67