logo       

Re: PSoundChannel bug in Linux: msg#00428

telephony.openh323.general

Subject: Re: PSoundChannel bug in Linux

Hi,

Le dimanche 27 février 2005 à 18:10 -0800, Guilhem Tardy a écrit :
> Hi,
>
> I am sending this here, but the GnomeMeeting guys may be interested to comment
> since this seems Linux related.
>
> For playing a file N>1 times, I had to do:
> do {
> // workaround for broken "WaitForPlayCompletion"
> chnl->PlaySound(file, FALSE);
> while (!chnl->HasPlayCompleted());
> }
> while (--maxTimes);
>
> This is because
> chnl->PlaySound(file, TRUE);
> does not wait as it SHOULD, and thus I get only the file played once.
>
> I couldn't see any reason for this in the source, and thus cannot rule out an
> issue in the ALSA driver itself.
>

WaitForCompletion () is using snd_pcm_drain and it should thus wait
until the sound has completed to play.

I have tested here and it seems to work here.

But the (very light) documentation says this :
"Stop a PCM preserving pending frames."

As the sound is played in one step (as for OSS), it should thus wait
that the other frames are played before stopping.

If you have a sound sample and a sample program, I can try here.
--
_ Damien Sandras
(o- GnomeMeeting: http://www.gnomemeeting.org/
//\ FOSDEM 2005 : http://www.fosdem.org
v_/_ H.323 phone : callto:ils.seconix.com/dsandras@xxxxxxxxxxx

------------------------------------------------------------------------
Check the FAQ before asking! - http://www.openh323.org/~openh323/fom.cgi
The OpenH323 Project mailing list, using Mailman. To unsubscribe or
change your subscription options, goto
http://www.openh323.org/mailman/listinfo/openh323
Maintained by Quicknet Technologies, Inc - http://www.quicknet.net
------------------------------------------------------------------------



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise