Hi all, I get a strange problem playing files with pjsua_player_create. When I try to play the example wav file given with the psip library, all is working very well. I tried with a file of mines and I get the following message : 10:58:48.027 pjsua_media.c Unable to open file for playback: Not a valid WAVE file (PJMEDIA_ENOTVALIDWAVE) [status=220180] FCVOC: ../src/pjsua-lib/pjsua_media.c:1784: pjsua_player_get_port: Assertion `id>=0&&id<(int)(sizeof(pjsua_var.player)/sizeof(pjsua_var.player[0]))' failed. Abandon What I understood is that the format of my file is wrong. With sox, I get following : The working file : Input Filename : ../sound.wav Sample Size : 16-bits Sample Encoding: signed (2's complement) Channels : 1 Sample Rate : 8000 The non-working file : Input Filename : Acc2.wav Sample Size : 16-bits Sample Encoding: signed (2's complement) Channels : 1 Sample Rate : 8000 It seems to me that the formats are the same. So why is one working and the other not ? By the way, how can I avoid the program to stop on this kind of error ? I tried to compile with NDEBUG flag, but it still stops on "Assertion". Regards, Frederic -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080901/10ba69a9/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: fclement.vcf Type: text/x-vcard Size: 389 bytes Desc: not available Url : http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080901/10ba69a9/attachment.vcf