dapphp/securimage — pull request #10 by Uranium235 (2012-04-15 02:36:53+00:00)
Title: Wave format compliance

Phew, that proved to be more work than expected!

Not without pride, I am happy to announce that WavFile outputs 100% specification compliant data for it's supported formats (8, 16, 24 bit PCM and 32 bit IEEE FLOAT) in plain and EXTENSIBLE format, where needed.
Except for the possibility that there may be more than 1 "data" chunk, reading also fully supports the spec. for the supported formats.
Error handling (in getWavInfo) is a bit more tolerant now, but I provided the exceptions commented out as well. I once again changed the error codes.

With the added channel masking support, I guess we can use this now for professional studio grade audio processing ;-)

As I hate to leave things unfinished, I will try to find the time to tackle the TODOs.
btw, I guess you can take out the @todo in securimage.php now.

Cheers,
Paul