[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] initial gr-audio-portaudio

From: Thomas Schmid
Subject: Re: [Discuss-gnuradio] initial gr-audio-portaudio
Date: Sun, 12 Mar 2006 19:14:15 -0800

I tried your code on Mac OS X 10.4 and I get pretty far (everything
compiles and isntalls after some hacking), but when I execute an audio
example, I get this error:

19:04 address@hidden:~/gnuradio/gr-build/gnuradio-examples/python/audio$
Traceback (most recent call last):
  File "./dial_tone.py", line 55, in ?
  File "./dial_tone.py", line 48, in __init__
    dst = audio.sink (sample_rate, options.audio_output)
line 235, in sink
    return _audio_portaudio.sink(*args)
NotImplementedError: No matching function for overloaded 'sink'

Now I am stuck. Any idea why this happens or what could be wrong?

Here is what I did, if anyone wants to repeat it:

- install xcode 2.2
- install coreaudio sdk 1.4.3
- downloaded portaudio V19 and applied patch
- fixed small -framework error on line 144 of configure.in (remove
double -framework)
- fixed also -framework error in Makefile.in
- removed the portaudio.pc directives which were added from the patch
(no portaudio.pc target in the makefile, will do it manually later on.
i think it is missing.)
- make; make install

- applied patch to gnuradio-core
- add gr-portaudio to audio.py in src/python/gnuradio (or replace the
audio_osx one, as you wish)
- make; make install

- produce my own portaudio.pc file
- remove the -mthreads library from that file
- make gr-portaudio

that's it...


On 3/12/06, Stephane Fillod <address@hidden> wrote:
> On Sun, Mar 12, 2006 at 02:36:21PM -0500, Robert McGwier wrote:
> > That is why I put the message out.  It will be good to have a working
> > starting point.
> Okay, there it is. Just checked in to gr-audio-portaudio repository.
> It's somewhat working, but there's still some static in the audio
> output (tested with ALSA playback, mono and stereo). Some more work
> is needed.
> You will need the attached patchs:
> - against gnuradio-core: ot_gri_ringbuffer.patch
>         * src/lib/omnithread/omnithread.h: add omni_mutex::trylock
>         * src/lib/general/gri_ringbuffer.{cc,h},
>           src/lib/general/Makefile.am: new lockless ringbuffer (single
>           reader/single writer) taken from JACK software (GPL).
> - against portaudio-V19(CVS): portaudio-pkg-config.patch
>         * pkg-config .pc file with proper THREAD_FLAGS
> The code should be portable. I was missing the native Win32 call for
> mutex_trylock, so someone will have to find it, and define
> OMNI_MUTEX_TRYLOCK_IMPLEMENTATION in src/lib/omnithread/ot_nt.h,
> with appropriate semantic (return value).
> The gri_pa_find_device_by_name() function will have to be made more
> smart, like accepting which HostApi (ALSA, JACK, ..) is to be chosen,
> and which device from this API. A syntax will have to be agreed upon,
> like "ALSA:hw:0" or "OSS:/dev/dsp1".
> Have fun,
> --
> Stephane
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

reply via email to

[Prev in Thread] Current Thread [Next in Thread]