On Sun, 14 Dec 2003 10:01:57 -0800, James McCartney <asynth@xxxxxx> wrote: Hi
That would be a problem, yes :] Thanks for the suggestion, I will try and hack the routines myself I think, to see if I can make it work. I did the exact opposite in the meantime though, made file reading routines use native endian, and scsynth would finally produce sound at least :D If you guys could need another developer for the Linux port, I'm interested. I've already done some work on PortAudio for ALSA/Linux, but I also have some experience working with Linux GUI toolkits (GTK, Qt).The file format for synthdefs is supposed to be big endian. So scsynth is doing it right.The problem I'd guess is that SClang file routines write native endian.
Regards Arve Knudsen
On Dec 14, 2003, at 8:29 AM, Arve Knudsen wrote:Hi list, first post :)I find that scsynth segfaults within GraphDef_Read, due to what looks like reading beyond the input buffer. What's the cause of this, I'm not really intimate with the code yet, but it looks like variables are being read in big endian order? I'm on x86, so could be a likely explanation. Anyway, this is the source of the problem with synth definitions right (having to delete synthdefs/*)? From what I can see there exists functions for reading bytes in little endian order, how come these aren't being used?Regards Arve Knudsen