briandorsey / wavrw

wavrw is a command line tool to read and write WAV files with a focus on visualizing the structure of files and parsing metadata.
Apache License 2.0
2 stars 1 forks source link

refactor chunk parsing to avoid seeking backwards to parse chunk id #23

Closed briandorsey closed 6 months ago

briandorsey commented 6 months ago

Currently each Chunk struct starts with:

    #[brw(seek_before = SeekFrom::Current(-4))]

We should be able to avoid that. Maybe chunks should have static FourCC ids?