wav-player broken for CCITT u/a-law files in 1.10 (and 2.x) after Ticket #597

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

 



Hello all,

With the introduction of ticket #597 (Error reading WAV files when there is
extra chunk AFTER data chunk), the wav-player is now broken for CCITT
u/a-law encoded WAV-files. The default 16-bit PCM files are handled OK.

The problem:
It seems that the last couple of audio-bytes are not handled anymore.

So an audio-file (enc: CCITT, u-Law, 8kHz, 8-bits, mono) that contains:
"Please enter you PIN-code"
Will now sound as: "Please enter your PIN" (missing the "code").
(I have attached this audio-file)

With PJSIP 1.5.5 (our previous package), this file is played correctly.
When converting this file to 16-bit PCM, it also sounds OK. When converting
this PCM back to CCITT => wrong again.
So it is purely related to CCITT encoded files.

About the ticket 597:
I would like to keep this ticket in the PJSIP package, because this is based
upon reading the audio data-chunk, rather than the previous one which was
based upon reading till EOF (including the issue of unable to handle the
file when a chunk was inserted after the audio data chunk).

I'm currently looking into this issue, but I'm feeling "homeless" in this
audio-code.
So any suggestions are welcomed.


With regards,
Eize Slange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20111019/7f622ca4/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test-prompt.wav
Type: audio/x-wav
Size: 12074 bytes
Desc: not available
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20111019/7f622ca4/attachment.wav>


[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