From owner-freebsd-multimedia@FreeBSD.ORG Tue Apr 26 06:41:29 2011 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B2FF3106566B for ; Tue, 26 Apr 2011 06:41:29 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe01.c2i.net [212.247.154.2]) by mx1.freebsd.org (Postfix) with ESMTP id 2A1068FC08 for ; Tue, 26 Apr 2011 06:41:28 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=Vlw5OJcoxCC473z5moizI40ESYe+BpcMN2hU0iQoJwI= c=1 sm=1 a=IU0TiZmyZPMA:10 a=yNLj92IrXO4A:10 a=WQU8e4WWZSUA:10 a=Q9fys5e9bTEA:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=8kQB0OdkAAAA:8 a=6I5d2MoRAAAA:8 a=91hLgaAigEkzsiNbf6cA:9 a=d86PcTZcG9ivabC5pHUA:7 a=PUjeQqilurYA:10 a=9aOQ2cSd83gA:10 a=i9M/sDlu2rpZ9XS819oYzg==:117 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mailfe01.swip.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.3.1 X-TFF-CGPSA-Version: 1.7 X-T2-CGPSA-Filter: Scanned Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe01.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 118944633; Tue, 26 Apr 2011 08:41:16 +0200 From: Hans Petter Selasky To: Marcel Bonnet Date: Tue, 26 Apr 2011 08:40:20 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.2-PRERELEASE; KDE/4.4.5; amd64; ; ) References: <201104231839.02214.hselasky@c2i.net> In-Reply-To: X-Face: *nPdTl_}RuAI6^PVpA02T?$%Xa^>@hE0uyUIoiha$pC:9TVgl.Oq, NwSZ4V"|LR.+tj}g5 %V,x^qOs~mnU3]Gn; cQLv&.N>TrxmSFf+p6(30a/{)KUU!s}w\IhQBj}[g}bj0I3^glmC( :AuzV9:.hESm-x4h240C`9=w MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201104260840.20985.hselasky@c2i.net> Cc: freebsd-multimedia@freebsd.org Subject: Re: uaudio, M-Audio FastTrack Pro device - sound distorted X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Apr 2011 06:41:29 -0000 On Monday 25 April 2011 23:04:38 Marcel Bonnet wrote: > On 23 April 2011 13:39, Hans Petter Selasky wrote: > > On Saturday 23 April 2011 15:56:15 Marcel Bonnet wrote: > > > On 23 April 2011 02:20, Hans Petter Selasky wrote: > > > > On Saturday 23 April 2011 04:15:01 Marcel Bonnet wrote: > > > > > Hi, folks. > > > > > > > > > > I'm using the M-AUDIO FastTrack Pro USB audio interface, but every > > > > time > > > > > > > I play or record, the sound get distorted. > > > > > If I record a clean guitar, it sounds like using a light > > > > > > > > distortion/driver. > > > > > > > > > Any mp3 or wav I play is distorted too, especialy the higher notes. > > > > > This device has it's own mixer. I'm sure the sound is not clipping > > > > > > > > because > > > > > > > > > the interface has its own knobs (volume/gain for in/out) and a led > > > > for > > > > > > > clipping indication. > > > > > > > > > > I tried to change the volume using the mixer command - nothing > > > > changed. > > > > > > > I thought the problem could be the frequency rate: tried the sysctl > > > > > dev.pcm.0.play.vchanmode (tried the 3 values without any > > > > > difference) and the dev.pcm.0.play.vchanrate (but the system > > > > > always mantain the same freq = 44100). No sucess too. > > > > > > > > > > I just don't know what to do. Don't even know if I'm in the right > > > > > direction. Maybe it could be a driver's problem? > > > > > I apreciate any help. Below there are some information. > > > > > > > > Hi, > > > > > > > > What does the distortion look like in audiacity? > > > > > > Hi. You mean like the visual form of the wave? It looks perfect, no > > > clipping, no distortion. I recorded a piano in audacity. The playback > > > was distorted. I then exported to WAV and played in Sound Forge > > > (windows) and the wave form was nice and the sound was perfect! > > > Seems the problem is only when I playback in FreeBSD. > > > Any other ideia? > > > > > > Well, if it is important: I'm running: > > > $ uname -a > > > > > > FreeBSD machine.STUDIO 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Fri Feb 18 > > > 02:24:46 UTC 2011 > > > root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 > > > > > > Thanks > > > > > > > --HPS > > > > It might be that the device announces it supports 44.1KHz, though the > > actual > > rate is 48KHz. > > > > Try this patch: > > > > http://svn.freebsd.org/changeset/base/220900 > > Hello. I tried. > I backuped the original uaudio.c and put the new one in > /usr/src/sys/dev/sound/usb > and then: > > # cd /usr/src/sys/modules/sound/driver/uaudio > # make > > The result was: > > -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c > /usr/src/sys/modules/sound/driver/uaudio/../../../../dev/sound/usb/uaudio.c > /usr/src/sys/modules/sound/driver/uaudio/../../../../dev/sound/usb/uaudio.c > : In function 'uaudio_probe': > /usr/src/sys/modules/sound/driver/uaudio/../../../../dev/sound/usb/uaudio.c > :548: error: 'UQ_AU_VENDOR_CLASS' undeclared (first use in this function) > /usr/src/sys/modules/sound/driver/uaudio/../../../../dev/sound/usb/uaudio. > c:548: error: (Each undeclared identifier is reported only once > /usr/src/sys/modules/sound/driver/uaudio/../../../../dev/sound/usb/uaudio.c > :548: error: for each function it appears in.) > /usr/src/sys/modules/sound/driver/uaudio/../../../../dev/sound/usb/uaudio.c > :564: error: 'UQ_BAD_MIDI' undeclared (first use in this function) > /usr/src/sys/modules/sound/driver/uaudio/../../../../dev/sound/usb/uaudio.c > : In function 'uaudio_attach': > /usr/src/sys/modules/sound/driver/uaudio/../../../../dev/sound/usb/uaudio.c > :598: error: 'UQ_AU_VENDOR_CLASS' undeclared (first use in this function) > *** Error code 1 > > Did I made anything wrong or maybe we're missing a SVN update for uaudio.h > or something? Then you also need to import the usb/quirk folder and related files and possibly also usb/usbdevs --HPS