update doc for Audio (changed specs)
This commit is contained in:
parent
d48822fd96
commit
f9b54bb505
1 changed files with 4 additions and 3 deletions
|
@ -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>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue