Add basic serialization (save to WAV) implementation.

- There are still crackles when round-tripping some sounds. Need to
  figure out where that's coming from.