Modify WAV Generator to Use std::ostream and Fix RIFF Padding