Audio packet iterator implemented, and used to complete IO thread.
Audio samples are now just written to a file, not yet the sound device.