Crates.io | spcfile |
lib.rs | spcfile |
version | 1.2.0 |
source | src |
created_at | 2024-10-02 20:58:37.756543 |
updated_at | 2024-10-02 20:58:37.756543 |
description | .spc file format reading and writing |
homepage | https://spcasm.filmroellchen.eu/ |
repository | https://github.com/kleinesfilmroellchen/spcasm |
max_upload_size | |
id | 1394626 |
size | 19,569 |
A library for reading and writing .spc files, used for storing SNES game audio.
This library is part of spcasm
and follows spcasm's release schedule and version numbers.
Use [parser::parse_from_bytes
] to parse an SPC file from a byte slice. It either returns a [nom
] parsing error, or an [SpcFile
] struct. This struct is a straightforward representation of the SPC file format structure, split into [SpcHeader
] and [SpcMemory
].
The spcdump
example is a simple utility to print out the parsed result of any .spc file.
.spc, despite being fairly simple (and not having to convey much information), is an insanely bad file format. Here are some of the issues relating to spcfile's reading behavior:
Additionally, spcplay currently has no support for extended ID666 metadata at the end of the file.