Comment 12 for bug 887922

Revision history for this message
RJ Skerry-Ryan (rryan) wrote : Re: [Bug 887922] Re: USB Mic not displaying under sound input list

Hey Walter,

Did you install portaudio19-dev? If you have, then could you try opening
pa_devs.c and changing:

#include "portaudio.h"

to

#include <portaudio.h>

And give it another try?

On Thu, Dec 1, 2011 at 11:45 PM, Walter Lapchynski <
<email address hidden>> wrote:

> sadly, compilation failed:
> $ wget
> http://portaudio.com/trac/export/1796/portaudio/trunk/examples/pa_devs.c
> --2011-12-01 20:41:08--
> http://portaudio.com/trac/export/1796/portaudio/trunk/examples/pa_devs.c
> Resolving portaudio.com... 209.235.192.160
> Connecting to portaudio.com|209.235.192.160|:80... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 9015 (8.8K) [text/x-csrc]
> Saving to: `pa_devs.c'
>
> 100%[=======================================>] 9,015 --.-K/s in
> 0.1s
>
> 2011-12-01 20:41:11 (89.0 KB/s) - `pa_devs.c' saved [9015/9015]
>
> $ sudo apt-get install portaudio19-dev
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> The following extra packages will be installed:
> libasound2-dev libportaudiocpp0
> Suggested packages:
> libasound2-doc
> The following NEW packages will be installed:
> libasound2-dev libportaudiocpp0 portaudio19-dev
> 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
> Need to get 731 kB of archives.
> After this operation, 2,761 kB of additional disk space will be used.
> Do you want to continue [Y/n]?
> Get:1 http://us.archive.ubuntu.com/ubuntu/ oneiric/main libasound2-dev
> i386 1.0.24.1-0ubuntu10 [586 kB]
> Get:2 http://us.archive.ubuntu.com/ubuntu/ oneiric/main libportaudiocpp0
> i386 19+svn20110326-2 [19.6 kB]
> Get:3 http://us.archive.ubuntu.com/ubuntu/ oneiric/main portaudio19-dev
> i386 19+svn20110326-2 [125 kB]
> Fetched 731 kB in 2s (248 kB/s)
> Selecting previously deselected package libasound2-dev.
> (Reading database ... 199537 files and directories currently installed.)
> Unpacking libasound2-dev (from
> .../libasound2-dev_1.0.24.1-0ubuntu10_i386.deb) ...
> Selecting previously deselected package libportaudiocpp0.
> Unpacking libportaudiocpp0 (from
> .../libportaudiocpp0_19+svn20110326-2_i386.deb) ...
> Selecting previously deselected package portaudio19-dev.
> Unpacking portaudio19-dev (from
> .../portaudio19-dev_19+svn20110326-2_i386.deb) ...
> Setting up libasound2-dev (1.0.24.1-0ubuntu10) ...
> Setting up libportaudiocpp0 (19+svn20110326-2) ...
> Setting up portaudio19-dev (19+svn20110326-2) ...
> Processing triggers for libc-bin ...
> ldconfig deferred processing now taking place
> $ gcc -lportaudio -o pa_devs pa_devs.c
> /tmp/cc4phk2B.o: In function `PrintSupportedStandardSampleRates':
> pa_devs.c:(.text+0x35): undefined reference to `Pa_IsFormatSupported'
> /tmp/cc4phk2B.o: In function `main':
> pa_devs.c:(.text+0x103): undefined reference to `Pa_Initialize'
> pa_devs.c:(.text+0x108): undefined reference to `Pa_GetVersionText'
> pa_devs.c:(.text+0x10f): undefined reference to `Pa_GetVersion'
> pa_devs.c:(.text+0x129): undefined reference to `Pa_GetDeviceCount'
> pa_devs.c:(.text+0x15b): undefined reference to `Pa_Terminate'
> pa_devs.c:(.text+0x1ad): undefined reference to `Pa_GetErrorText'
> pa_devs.c:(.text+0x1ff): undefined reference to `Pa_GetDeviceInfo'
> pa_devs.c:(.text+0x225): undefined reference to `Pa_GetDefaultInputDevice'
> pa_devs.c:(.text+0x251): undefined reference to `Pa_GetHostApiInfo'
> pa_devs.c:(.text+0x269): undefined reference to `Pa_GetHostApiInfo'
> pa_devs.c:(.text+0x292): undefined reference to `Pa_GetDefaultOutputDevice'
> pa_devs.c:(.text+0x2d9): undefined reference to `Pa_GetHostApiInfo'
> pa_devs.c:(.text+0x2f1): undefined reference to `Pa_GetHostApiInfo'
> pa_devs.c:(.text+0x36a): undefined reference to `Pa_GetHostApiInfo'
> pa_devs.c:(.text+0x533): undefined reference to `Pa_Terminate'
> collect2: ld returned 1 exit status
>
>
> On 12/01/2011 04:12 PM, Bill Good wrote:
> > Would you mind compiling, running and pasting the output of
> > http://portaudio.com/trac/browser/portaudio/trunk/examples/pa_devs.c
> > (direct link to c file:
> > http://portaudio.com/trac/export/1796/portaudio/trunk/examples/pa_devs.c
> )?
> >
> > It should compile with gcc -lportaudio -o pa_devs pa_devs.c; you may
> > need to install portaudio19-dev first.
> >
> > It'll list all the devices portaudio is seeing and give various info
> > about them, hopefully it'll give a hint as to why Mixxx isn't displaying
> > your microphone. I know you mentioned Audacity doesn't have any issues
> > with it, but I think Audacity bundles its own copy of portaudio in its
> > packages so it's possible there's some difference (also, knowing the
> > info we're getting from PortAudio will likely be useful to know).
> >
>
> --
> You received this bug notification because you are a member of Mixxx
> Development Team, which is subscribed to Mixxx.
> https://bugs.launchpad.net/bugs/887922
>
> Title:
> USB Mic not displaying under sound input list
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/mixxx/+bug/887922/+subscriptions
>