From owner-freebsd-multimedia@FreeBSD.ORG Mon Apr 25 21:04:39 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 4888E1065672 for ; Mon, 25 Apr 2011 21:04:39 +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 173248FC0A for ; Mon, 25 Apr 2011 21:04:39 +0000 (UTC) Received: by pvg11 with SMTP id 11so8691pvg.13 for ; Mon, 25 Apr 2011 14:04:38 -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:content-type; bh=EJRqZSU8elg+Q/9Y4oV1cfubpDhwnexWo06hZmO9ZrM=; b=CSkCNbf4GS68UztxYkWOFQ8lrN8h9w6Zu9G3/YAx0poz5i0qFuz9/AEPdjHO18lQug DNh5gRfQs2bupW5VQnCs6dQX4drcc+n/KCjMvr1+Hxr7xT5LEQhMoVQiMJQbSi2yk3wR V+l3D3nrjBj6CoJnChJBVkpTLjBlAKFLF9O10= 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 :content-type; b=MnlZHfXl6k4qhGk3UxkmWeqbYjU0HBb1Z2SBIaJbl2XN0lBm1FeLsJID8GG4gNeZs1 4ya21decHavG+2+upCnPWkqMxFke39NkzE93gHVGn/tW+YfQyEBqLmyhTse6UdpRwaNl Xlm1KwN+uWhPqHkWywCL40/8Xq2bAacuNIrPk= MIME-Version: 1.0 Received: by 10.68.51.234 with SMTP id n10mr6965835pbo.402.1303765478763; Mon, 25 Apr 2011 14:04:38 -0700 (PDT) Received: by 10.68.58.231 with HTTP; Mon, 25 Apr 2011 14:04:38 -0700 (PDT) In-Reply-To: <201104231839.02214.hselasky@c2i.net> References: <201104230720.26203.hselasky@c2i.net> <201104231839.02214.hselasky@c2i.net> Date: Mon, 25 Apr 2011 18:04:38 -0300 Message-ID: From: Marcel Bonnet To: freebsd-multimedia@freebsd.org, Hans Petter Selasky Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: 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: Mon, 25 Apr 2011 21:04:39 -0000 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? > --HPS >