Skip to content

Commit

Permalink
Remove Audio::new() since it's useless now.
Browse files Browse the repository at this point in the history
  • Loading branch information
AldaronLau committed Jan 29, 2022
1 parent db0c557 commit caff78a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ and this project adheres to [Semantic Versioning](https://github.com/AldaronLau/
- `chan::Ch24`, a 24-bit integer channel
- `chan::Channel::to_f32()`
- `pos` module containing types for type-safe channel indexing on `Frame`
- `Audio::new()`
- `Audio::as_u8_slice()`
- `Audio::silence()` to silence the entire audio buffer
- `AudioSink` public type returned from `Audio::sink()`
Expand Down
6 changes: 0 additions & 6 deletions src/audio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,6 @@ pub struct Audio<Chan: Channel, const CH: usize> {
}

impl<Chan: Channel, const CH: usize> Audio<Chan, CH> {
/// Construct an empty `Audio` buffer.
#[inline(always)]
pub fn new(hz: u32) -> Self {
Self::with_frames::<[Frame<Chan, CH>; 0]>(hz, [])
}

/// Construct an `Audio` buffer with all all samples set to zero.
#[inline(always)]
pub fn with_silence(hz: u32, len: usize) -> Self {
Expand Down

0 comments on commit caff78a

Please sign in to comment.