do not free export thread when freeing jack-client. both of these should live for the entire duration of the program
allocate a little more space than should be necessary when reading audio data. for some reason http://www.freesound.org/people/madjad/sounds/21653/ was causing seg faults because Sample_init was writing past the end of the buffer