audioadapter-compat-ndarray
audioadapter trait implementations for
two-dimensional ndarray arrays
(ArrayBase<_, Ix2>, including Array2<T> and array views).
The axis order is chosen explicitly:
NdarrayAdapter::new_channels_framesfor arrays shaped(channels, frames).NdarrayAdapter::new_frames_channelsfor arrays shaped(frames, channels).
Sample access uses ndarray indexing, so it is correct for any memory layout, and the bulk copy helpers take a contiguous-slice fast path in the common standard-layout case.
Versioning
This crate exposes types from both audioadapter and ndarray in its public API, so its version is tied to one major version of each.
This 1.x release targets audioadapter 5.x and ndarray 0.17.x.
A new incompatible release of either dependency is supported by a new major version of this crate. Pick the version that matches what you use:
| this crate | audioadapter | ndarray |
|---|---|---|
1.x |
5.x |
0.17.x |
Changelog
See the changelog.
License
Licensed under either of Apache-2.0 or MIT at your option.