Found the line that was crashing Swift in waveformImageFromSample.
minor changes
indentation change.
Better defined data types.
Merge branch 'master' into Xcode6