Struct screech::stream::Stream [−][src]
Expand description
Struct representing a stream of audio data
Fields
points: Vec<Point>
Vec containing all audio points
Implementations
Get point for provided position argument, errors when the index does not exist in the stream
Mix multiple streams into the given stream
note the size of the stream is unchanged, if the other streams are shorter it inserts silence (0.0) if the other streams are longer the remaining points are ignored
Amplify a stream by decibels
note clamps values at -1.0 and 1.0
Returns a slice of the points into a new Stream
Returns a slice of the stream that loops around when going out of bounds
Trait Implementations
Create new stream based on f32 points
Create new stream based on i16 points, converts i16 to point value (f32 between -1.0 and 1.0)
Create new stream based on i32 points, converts i32 to point value (f32 between -1.0 and 1.0)
Create new stream based on u8 points, converts u8 to point value (f32 between -1.0 and 1.0)
Auto Trait Implementations
Blanket Implementations
Mutably borrows from an owned value. Read more