|
Re: PSoundChannel bug in Linux: msg#00428telephony.openh323.general
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> |
|---|---|---|
| Previous by Date: | OPAL & H323_ExternalRTPChannel: 00428, Juan Francisco Navarro |
|---|---|
| Next by Date: | Re: re: G.729 Codec Jitter Issues In OPAL: 00428, Ted Szoczei |
| Previous by Thread: | PSoundChannel bug in Linuxi: 00428, Guilhem Tardy |
| Next by Thread: | Re: PSoundChannel bug in Linux: 00428, Guilhem Tardy |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |