audio_core/lib.rs
1//! [<img alt="github" src="https://img.shields.io/badge/github-udoprog/audio-8da0cb?style=for-the-badge&logo=github" height="20">](https://github.com/udoprog/audio)
2//! [<img alt="crates.io" src="https://img.shields.io/crates/v/audio-core.svg?style=for-the-badge&color=fc8d62&logo=rust" height="20">](https://crates.io/crates/audio-core)
3//! [<img alt="docs.rs" src="https://img.shields.io/badge/docs.rs-audio--core-66c2a5?style=for-the-badge&logoColor=white&logo=data:image/svg+xml;base64,PHN2ZyByb2xlPSJpbWciIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDUxMiA1MTIiPjxwYXRoIGZpbGw9IiNmNWY1ZjUiIGQ9Ik00ODguNiAyNTAuMkwzOTIgMjE0VjEwNS41YzAtMTUtOS4zLTI4LjQtMjMuNC0zMy43bC0xMDAtMzcuNWMtOC4xLTMuMS0xNy4xLTMuMS0yNS4zIDBsLTEwMCAzNy41Yy0xNC4xIDUuMy0yMy40IDE4LjctMjMuNCAzMy43VjIxNGwtOTYuNiAzNi4yQzkuMyAyNTUuNSAwIDI2OC45IDAgMjgzLjlWMzk0YzAgMTMuNiA3LjcgMjYuMSAxOS45IDMyLjJsMTAwIDUwYzEwLjEgNS4xIDIyLjEgNS4xIDMyLjIgMGwxMDMuOS01MiAxMDMuOSA1MmMxMC4xIDUuMSAyMi4xIDUuMSAzMi4yIDBsMTAwLTUwYzEyLjItNi4xIDE5LjktMTguNiAxOS45LTMyLjJWMjgzLjljMC0xNS05LjMtMjguNC0yMy40LTMzLjd6TTM1OCAyMTQuOGwtODUgMzEuOXYtNjguMmw4NS0zN3Y3My4zek0xNTQgMTA0LjFsMTAyLTM4LjIgMTAyIDM4LjJ2LjZsLTEwMiA0MS40LTEwMi00MS40di0uNnptODQgMjkxLjFsLTg1IDQyLjV2LTc5LjFsODUtMzguOHY3NS40em0wLTExMmwtMTAyIDQxLjQtMTAyLTQxLjR2LS42bDEwMi0zOC4yIDEwMiAzOC4ydi42em0yNDAgMTEybC04NSA0Mi41di03OS4xbDg1LTM4Ljh2NzUuNHptMC0xMTJsLTEwMiA0MS40LTEwMi00MS40di0uNmwxMDItMzguMiAxMDIgMzguMnYuNnoiPjwvcGF0aD48L3N2Zz4K" height="20">](https://docs.rs/audio-core)
4//!
5//! The core [audio] traits.
6//!
7//! If you want to build an audio component that is completely agnostic to the
8//! shape of any one given audio buffer you can add a dependency directly to
9//! these traits instead of depending on all of the [audio] crate.
10//!
11//! [audio]: https://docs.rs/audio
12
13#![cfg_attr(not(feature = "std"), no_std)]
14#![deny(missing_docs, rustdoc::broken_intra_doc_links)]
15#![allow(clippy::should_implement_trait)]
16
17pub mod buf;
18pub use self::buf::Buf;
19
20mod buf_mut;
21pub use self::buf_mut::BufMut;
22
23mod channel;
24pub use self::channel::Channel;
25
26mod channel_mut;
27pub use self::channel_mut::ChannelMut;
28
29mod frame;
30pub use self::frame::Frame;
31
32mod frame_mut;
33pub use self::frame_mut::FrameMut;
34
35pub mod translate;
36pub use self::translate::Translate;
37
38mod sample;
39pub use self::sample::Sample;
40
41mod read_buf;
42pub use self::read_buf::ReadBuf;
43
44mod write_buf;
45pub use self::write_buf::WriteBuf;
46
47mod exact_size_buf;
48pub use self::exact_size_buf::ExactSizeBuf;
49
50mod resizable_buf;
51pub use self::resizable_buf::ResizableBuf;
52
53mod interleaved_buf;
54pub use self::interleaved_buf::InterleavedBuf;
55
56mod interleaved_buf_mut;
57pub use self::interleaved_buf_mut::InterleavedBufMut;
58
59mod linear_channel;
60pub use self::linear_channel::LinearChannel;
61
62mod linear_channel_mut;
63pub use self::linear_channel_mut::LinearChannelMut;
64
65mod uniform_buf;
66pub use self::uniform_buf::UniformBuf;