pjsua Unsupported WAVE file format (PJMEDIA_EWAVEUNSUPP)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

digging into the pjsip source code, wavplayer files, here are the cases in which the error PJMEDIA_EWAVEUNSUPP would occur:
- Must be PCM with 16 bits per sample
- Block align must be 2*nchannels
- Invalid file length (wavehdr.data_hdr.len > fport->fsize_list[index] - 
       fport->start_data_list[index])
- WAV playlist error: file '%s' has differrent number" of channels, sample rate, or bits per sample

The files are wav_player.c and wav_playlist.c if you want to have a look.

Hope this helps.

Chris
--
Chris Scheid
Mobile Developer
AppGuard LLC
"Safety for the Connected World"
_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux