From owner-freebsd-multimedia@FreeBSD.ORG Wed Apr 27 01:31:00 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 83A5C106566C for ; Wed, 27 Apr 2011 01:31:00 +0000 (UTC) (envelope-from marcelbonnet@gmail.com) Received: from mail-pv0-f182.google.com (mail-pv0-f182.google.com [74.125.83.182]) by mx1.freebsd.org (Postfix) with ESMTP id 5246E8FC0C for ; Wed, 27 Apr 2011 01:31:00 +0000 (UTC) Received: by pvg11 with SMTP id 11so1149750pvg.13 for ; Tue, 26 Apr 2011 18:30:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=bSaKdDL2jK1ruifZKy5bNbHN8YzEALgO8TtXqJxaPco=; b=XcbO1bCTxw/PtpHhAri60QjssG/K2zfeX4MzpREXTTIhRPnya3JOBayPu+X3Rk2LeC g9KuR/ObxaqLrlNtvcDY3NzA48Tj03LuX3ZJ8wHipTn60Sg6wPme/2lNfA3pwnr11Kc2 YZEzmBj3ez0eVQrAFVIk/Ztv1QPPkNIabGhqs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=Uzr5EU2Mw9MSoVefZunumbl9gybaKkd343ucaEe4CKaaLeGsY7WNFz5OjRLE10Wzer 5+uK46zOPc0hWhrwYQO0serRz7ok47uzeEDhAbGWuG6kSDHrJrfc8pJ4uLaMS1ovhAKq A0faFtPszE79lroTVb1mLl2z+ccH0AXO+EuO4= MIME-Version: 1.0 Received: by 10.68.36.73 with SMTP id o9mr1686440pbj.67.1303867858541; Tue, 26 Apr 2011 18:30:58 -0700 (PDT) Received: by 10.68.58.231 with HTTP; Tue, 26 Apr 2011 18:30:58 -0700 (PDT) In-Reply-To: <201104260840.20985.hselasky@c2i.net> References: <201104231839.02214.hselasky@c2i.net> <201104260840.20985.hselasky@c2i.net> Date: Tue, 26 Apr 2011 22:30:58 -0300 Message-ID: From: Marcel Bonnet To: Hans Petter Selasky Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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: Wed, 27 Apr 2011 01:31:00 -0000 On 26 April 2011 03:40, Hans Petter Selasky wrote: > 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 =3D 44100). No sucess too. > > > > > > > > > > > > I just don't know what to do. Don't even know if I'm in the rig= ht > > > > > > 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 playba= ck > > > > 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 functio= n) > > > /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 functio= n) > > *** 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 > Should I try import the files and try to make uaudio with that patch after the trick with setting "sysctl hw.usb.uaudio.default_rate=3D44100" ? Thanks, Marcel Bonnet > > --HPS > --=20 Marcel Bonnet *"No princ=EDpio era o caos... e no meio tamb=E9m."* www.monovox.net.br twitter.com/mono_vox FreeBSD inside