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

consistency: store string data in structs as a UTF8 string type #83

Closed briandorsey closed 3 months ago

briandorsey commented 3 months ago

Some *Data functions are storing raw bytes (adtl::ltxt for example). Update all structs to consistently store something which has parsed the data into a UTF8 string type of some kind.

Also, make sure that FixedStr ensures contents are UTF8.

Hint: search for uses of String::from_utf8_lossy() which aren't FourCC related.