Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Apr 2011 18:04:38 -0300
From:      Marcel Bonnet <marcelbonnet@gmail.com>
To:        freebsd-multimedia@freebsd.org, Hans Petter Selasky <hselasky@c2i.net>
Subject:   Re: uaudio, M-Audio FastTrack Pro device - sound distorted
Message-ID:  <BANLkTikOUe8TLch1H2UT%2BHAzbbk6Z3fZhw@mail.gmail.com>
In-Reply-To: <201104231839.02214.hselasky@c2i.net>
References:  <BANLkTimAZtcpe2Ba5P0qsHKiH2-G691GCQ@mail.gmail.com> <201104230720.26203.hselasky@c2i.net> <BANLkTi=-WksZLRx6GSKMRBKSNy2EsOJwYg@mail.gmail.com> <201104231839.02214.hselasky@c2i.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 23 April 2011 13:39, Hans Petter Selasky <hselasky@c2i.net> wrote:

> On Saturday 23 April 2011 15:56:15 Marcel Bonnet wrote:
> > On 23 April 2011 02:20, Hans Petter Selasky <hselasky@c2i.net> 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
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTikOUe8TLch1H2UT%2BHAzbbk6Z3fZhw>