Eichhoernchen/SiriServer — Issue #236: running on a PPC mac
Author: jtraynham
Created: 2012-02-13 05:44:04+00:00
State: open

I got this server running on an old PPC mac I had laying around. It runs quite well for being rather old. Anyway, I had to modify flac.py a little to get it running:

Add this to the imports at the top:

import sys

Then modify the encode function to include this:

if sys.byteorder == "big":
int16s = struct.unpack('>' + ('h'*length), data)
else:
int16s = struct.unpack('<' + ('h'*length), data)

I hope this helps someone who was trying to do the same. I imagine one of the project devs can add it to the code base.

Thanks for making SiriServer! :)