pink.io.sound-file

close-wav-data

(close-wav-data wav-data)
Rewrites WAV file header with appropriate values for samples written.

load-table

(load-table f)
Load given file or filename as sampled audio.  Returns a map with meta-information as
well as audio split into discrete channels. Converts to doubles from source format. 
Currently only works with 16-bit PCM_SIGNED wave files.

open-wave-write

(open-wave-write filename sr bit-rate channels block-size)
Opens a WAV file for streaming writes. WAV will have a mock header written
that will have full information written when close-wav-data is called.

write-wav-data

(write-wav-data interleaved-audio wav-data)
Appends new audio data to WAV file. interleaved-audio is
expected to be a double[] with size equal to block-size *
num-channels.