When I build with the build style "Deployment" in Xcode SoundFile
stops working. With a build style of "Development" it seems to work
fine. The below change fixes this problem. The documentation for
libsndfile says the format field of SF_INFO should be set to 0 unless
you're opening a RAW file. I won't be able to commit this for a
little while so if someone else would like to that would be
appreciated.
Index: source/lang/LangPrimSource/PyrFilePrim.cpp
===================================================================
RCS file:
/cvsroot/supercollider/SuperCollider3/source/lang/LangPrimSource/
PyrFilePrim.cpp,v
retrieving revision 1.10
diff -u -s -r1.10 PyrFilePrim.cpp
--- source/lang/LangPrimSource/PyrFilePrim.cpp 15 Dec 2003 06:04:10
-0000 1.10
+++ source/lang/LangPrimSource/PyrFilePrim.cpp 28 Jan 2004 16:27:31
-0000
@@ -851,6 +851,7 @@
memcpy(filename, b->uos->s, b->uo->size);
filename[b->uos->size] = 0;
+ info.format = 0;
file = sf_open(filename, SFM_READ, &info);