/// <summary> /// Update the RIFF WAVE. /// </summary> public void Update() { magic = "RIFF"; format = "WAVE"; fmt.Update(); data.Update(fmt); if (smpl != null) { smpl.Update(); } chunkSize = fmt.size + data.size + 20; if (smpl != null) { chunkSize += smpl.size + 8; } }