Hallo!
hm ... why are you using pd's soundfile functions in the first place? libsndfile provides a much more powerful wave file parser than pd ...
okay, I rewrote it now with libsndfile ... I should have done that earlier because it took me much less time then all the debugging on windows ... ;)
LG Georg