Skip to main content

write_smf

Function write_smf 

Source
pub fn write_smf(file: &SmfFile) -> Result<Vec<u8>, AudioError>
Expand description

Serialize an SmfFile to a fresh byte buffer.

Errors with AudioError::InvalidParameter if a channel message carries the wrong number of data bytes, if format is not 0/1/2, or if a chunk/VLQ field overflows its encodable range.