From d221629b3ecad5dc31205e8feed48ae81476c571 Mon Sep 17 00:00:00 2001 From: Jamie Hardt Date: Wed, 2 Dec 2020 22:39:02 -0800 Subject: [PATCH] More notes on things to do --- src/wavereader.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/wavereader.rs b/src/wavereader.rs index 0ba885e..7ee8366 100644 --- a/src/wavereader.rs +++ b/src/wavereader.rs @@ -209,6 +209,8 @@ impl WaveReader { * `Ok(())` if the source is `validate_readable()` AND * * - Contains _only_ a `fmt` chunk and `data` chunk, with no other chunks present + * - `fmt` chunk is exactly 16 bytes long and begins _exactly_ at file offset 12 + * - `data` content begins _exactly_ at file offset 36 * - is not an RF64/BW64 * * Some clients require a WAVE file to only contain format and data without any other @@ -237,7 +239,7 @@ impl WaveReader { .into_chunk_list()?.iter().map(|c| c.signature ).collect(); if chunk_fourccs == vec![FMT__SIG, DATA_SIG] { - Ok(()) + Ok(()) /* FIXME: finish implementation */ } else { Err( ParserError::NotMinimalWaveFile ) }