Crates.io | guitar-riff |
lib.rs | guitar-riff |
version | 0.1.1 |
source | src |
created_at | 2023-07-13 00:40:25.703376 |
updated_at | 2023-07-13 00:43:26.27639 |
description | A barebones implementation of the RIFF file format |
homepage | |
repository | https://github.com/toneo-/guitar-riff/ |
max_upload_size | |
id | 914943 |
size | 13,775 |
Based on the description of the format at: https://johnloomis.org/cpe102/asgn/asgn1/riff.html
Whilst this library can be used to read RIFF files, there are more mature alternatives out there (such as simply riff
).
This was originally written in a few hours as a simple practice project to get to grips with rust.
guitar-riff
only supports 32-bit RIFF files. It does not support 64-bit extensions to the format (i.e. DS64).
riff-info
currently does not report the correct size for LIST chunks.
riff-info
riff-info
is a small utility which outputs IDs and sizes for all chunks in a file to demonstrate the library. It accepts one argument, which is a path to a file containing a RIFF container. Output is similar to the chunks.exe
utility (but not identical).
You can run this using cargo from the riff-info/ directory:
cd ./riff-info/
cargo run ../1sec.wav
RIFF 353140
code: WAVE
fmt 16
data 352800
LIST 134
code: INFO
INAM 12
IPRD 6
IART 6
ICMT 22
ICRD 6
IGNR 12
ITRK 10
id3 154