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

2006-03-13 Thread Robert McGwier
Ok. This is closer. I get a few buffers, almost 1 second and then it goes off the deep end but that is better than before when all I could get was segmentation fault! I will look at the callback interface, etc. to see if I see anything. I already know this pa works because I am using it

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

2006-03-13 Thread Stephane Fillod
On Mon, Mar 13, 2006 at 03:52:25PM +0100, Martin Dvh wrote: [..] > > 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

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

2006-03-13 Thread Eric Blossom
On Sun, Mar 12, 2006 at 10:20:16PM +0100, Stephane Fillod 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.

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

2006-03-13 Thread Thomas Schmid
With help of the examples, I was able to get a little bit further. The portaudio_sink now gets initialized, but it shortly after fails with an abort trap. The cause is line 167 in audio_portaudio_sink.cc where d_portaudio_buffer_size is 0. It looks like if Pa_GetStreamInfo(d_stream)->outputLatency

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

2006-03-13 Thread Martin Dvh
Stephane Fillod 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 st

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

2006-03-12 Thread Stephane Fillod
On Sun, Mar 12, 2006 at 07:14:15PM -0800, Thomas Schmid wrote: > 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 [EMAIL PROTECTED]:~/gnuradio/gr-build/gnuradio-exampl

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

2006-03-12 Thread Stephane Fillod
Hi Thomas, On Sun, Mar 12, 2006 at 06:30:19PM -0800, Thomas Schmid wrote: > Hi Stephane, > > Is it possible that the portaudio patch of yours is missing the > portauido.pc target? I get errors if I want to install it, i.e., it > tells me that there is no portaudio.pc target. Have you run "acloca

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

2006-03-12 Thread Thomas Schmid
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 [EMAIL PROTECTED]:~/gnuradio/gr-build/gnuradio-examples/python/audio$ ./dial_tone.py Traceback (most recent call last): File

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

2006-03-12 Thread Robert McGwier
Yes. This is an error. To get started I just manually constructed portaudio.pc and started work on gr-audio-portaudio. After we get the appropriate fix to Makefile.in in the portaudio build, we should open gr-audio-portaudio. It is ready for us all to beat on it and find the problems. Bob

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

2006-03-12 Thread Thomas Schmid
Hi Stephane, Is it possible that the portaudio patch of yours is missing the portauido.pc target? I get errors if I want to install it, i.e., it tells me that there is no portaudio.pc target. Thomas On 3/12/06, Stephane Fillod <[EMAIL PROTECTED]> wrote: > On Sun, Mar 12, 2006 at 02:36:21PM -050

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

2006-03-12 Thread Robert McGwier
Stephane Fillod 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 som

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

2006-03-12 Thread Stephane Fillod
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