Jérôme WAGNER wrote:

Mathieu,

Do you remember why we added this portaudio init/cleanup sequences ?

I remember this was about the sharing of portaudio devices between phapi and
the core NG but I don't remember the exact use case that was leading to a
problem.
The problem is that If the application does PA_Initialize and then phapi does PA_Intialized it creates problems.

Maybe the best solution would be to add to a phApi a call phAudioInit()/phAudioCleanup() which will handle multiple invocation issues.
Or a call phEnumerateAudioDevices(bool enumInputDevs, bool enumOutputDevs,
void (*callback)(const char *devid, enum { IN,OUT,IO } kind, const char *displayName, void *cbkData),
void *cbkData);



Vadim

-----Message d'origine-----
De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] De la part de Ludovico
Cavedon
Envoyé : vendredi 15 décembre 2006 18:14
À : Wengo developement mailig list
Cc : Luca De Marco; Livio Torrero
Objet : [Wengophone-devel] Portaudio

Hi,

I noticed that at http://www.portaudio.com/download.html there is a
release of portaudio_v19 tagged as stable, so a sync could be
interesting. :)

I built .deb packages of this release for Ubuntu edgy. They are here
http://netgroup.polito.it/~cavedon/portaudio/ if someone wants to test
them.

I used the control structures from the .deb of feisty, and installed
them in my pc; they seems to work ok with wengophone.


Secondly, I noticed that wengophone is continuously reinitializing the
portaudio library. So I attached to patch to ticket #1212, so as to have
only one call to Pa_Initialize and Pa_terminate.

I can see the speed improvement.
But do you think this can lead to problems?

Regards,
Ludovico


_______________________________________________
Wengophone-devel mailing list
Wengophone-devel@lists.openwengo.com
http://dev.openwengo.com/mailman/listinfo/wengophone-devel

_______________________________________________
Wengophone-devel mailing list
Wengophone-devel@lists.openwengo.com
http://dev.openwengo.com/mailman/listinfo/wengophone-devel



_______________________________________________
Wengophone-devel mailing list
Wengophone-devel@lists.openwengo.com
http://dev.openwengo.com/mailman/listinfo/wengophone-devel

Reply via email to