[−][src]Crate dasp_slice
For working with slices of PCM audio data.
Items related to conversion between slices of frames and slices of samples, particularly useful for working with interleaved data.
Optional Features
- The boxed feature (or slice-boxed feature if using
dasp
) provides a suite of boxed slice conversion traits and functions under the boxed module.
no_std
If working in a no_std
context, you can disable the default std feature with
--no-default-features
.
Re-exports
pub use boxed::from_boxed_frame_slice; |
pub use boxed::from_boxed_sample_slice; |
pub use boxed::to_boxed_frame_slice; |
pub use boxed::to_boxed_sample_slice; |
pub use boxed::DuplexBoxedFrameSlice; |
pub use boxed::DuplexBoxedSampleSlice; |
pub use boxed::DuplexBoxedSlice; |
pub use boxed::FromBoxedFrameSlice; |
pub use boxed::FromBoxedSampleSlice; |
pub use boxed::ToBoxedFrameSlice; |
pub use boxed::ToBoxedSampleSlice; |
Modules
boxed | Items related to boxed-slice conversions. |
Traits
DuplexFrameSlice | For converting to and from a slice of |
DuplexFrameSliceMut | For converting to and from a mutable slice of |
DuplexSampleSlice | For converting to and from a slice of |
DuplexSampleSliceMut | For converting to and from a mutable slice of |
DuplexSlice | For converting to and from a slice of |
DuplexSliceMut | For converting to and from a mutable slice of |
FromFrameSlice | For converting from a slice of |
FromFrameSliceMut | For converting from a slice of |
FromSampleSlice | For converting from a slice of |
FromSampleSliceMut | For converting from a mutable slice of |
ToFrameSlice | For converting from a slice of |
ToFrameSliceMut | For converting from a mutable slice of |
ToSampleSlice | For converting from a slice of |
ToSampleSliceMut | For converting from a mutable slice of |
Functions
add_in_place | Adds every sample in slice |
add_in_place_with_amp_per_channel | Scale the amplitude of each frame in |
equilibrium | Sets the slice of frames at the associated |
from_frame_slice | Converts the given slice of |
from_frame_slice_mut | Converts the given slice of mutable |
from_sample_slice | Converts the given slice of |
from_sample_slice_mut | Converts the given mutable slice of |
map_in_place | Mutate every element in the slice with the given function. |
to_frame_slice | Converts the given slice into a slice of |
to_frame_slice_mut | Converts the given mutable slice into a mutable slice of |
to_sample_slice | Converts the given slice into a slice of |
to_sample_slice_mut | Converts the given mutable slice of |
write | Writes every sample in slice |
zip_map_in_place | Mutate every frame in slice |