update doc for Audio (changed specs)

This commit is contained in:
Breval Ferrari 2025-03-19 01:28:56 -04:00
parent d48822fd96
commit f9b54bb505
No known key found for this signature in database
GPG key ID: F71E304D6400AB8E

View file

@ -23,9 +23,10 @@ use crate::IntoDataBytes;
use super::{RawSamples, Sample};
/// The new hot thing: this represents audio in any format. You can open any file and make this thing with the file's bytes.
/// You can then modify its bytes and see what it gives. Maybe it won't work anymore.
/// You can also decode it to raw samples and play with it freely without corrupting anything.
/// Audio, unlike DynamicImage, isn't directly bendable
/// because its underlying data format isn't decided automatically
/// so you have to attribute it yourself by turning it into a [RawSamples] struct
/// with your chosen sample format.
#[derive(new)]
pub struct Audio {
reader: Box<dyn FormatReader>,