Hi We are using libcanberra 0.23 under Linux Fedora 11 64 bits to generate sounds with the backend PulseAudio.
We encounter a problem with the callback (fonction ca_finish_callback_t of the API) that is not systematically called at the end of the sound (a WAV format). In the inline documentation the sentence "The context this callback is called in is undefined, it might or might not be called from a background thread, and from any stack frame" seems to indicate that this could happen for unknown reasons. Do you confirm our understanding of this sentence ? Can you describe in which cases the callback is called without doubt ? Without changing our version of libcanberra, does exist a way to synchronise the end of a sound without the callback ? We try to poll through the function ca_context_playing but the problem is that while a big sound file is loading, this function returns the FALSE flag (meaning the sound isn't playing yet). And so, it is impossible to differentiate the loading duration of the file from the end of its playing. How can we solve the problem ? Thanks for your help ****************************************************************************** Ce message et les pièces jointes associées sont confidentiels et à l'attention exclusive des destinataires. Si vous avez reçu ce message par erreur, merci d'avertir l'administrateur de la messagerie: [email protected] This email and files transmitted with it are confidential and intended solely for the use of the individual to whom they are addressed. If you have received this email in error, please notify the system manager: [email protected] ****************************************************************************** _______________________________________________ libcanberra-discuss mailing list [email protected] https://tango.0pointer.de/mailman/listinfo/libcanberra-discuss
