Wav_write takes a []int32 and takes care of the conversion to bytes, making it possible to just call Wav_write(file, waveform) with no need to convert everytime.