Skip to content

Commit 16a1440

Browse files
committed
Better naming
1 parent 80277e0 commit 16a1440

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/sink.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ impl Sink {
121121

122122
let source = source
123123
.speed(1.0)
124-
.trackable()
124+
.track_position()
125125
.pausable(false)
126126
.amplify(1.0)
127127
.skippable()

src/source/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,11 +335,11 @@ where
335335
skippable::skippable(self)
336336
}
337337

338-
fn trackable(self) -> TrackPosition<Self>
338+
fn track_position(self) -> TrackPosition<Self>
339339
where
340340
Self: Sized,
341341
{
342-
position::trackable(self)
342+
position::track_position(self)
343343
}
344344

345345
/// Applies a low-pass filter to the source.

src/source/position.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use crate::{Sample, Source};
55
use super::SeekError;
66

77
/// Internal function that builds a `TrackPosition` object.
8-
pub fn trackable<I>(source: I) -> TrackPosition<I> {
8+
pub fn track_position<I>(source: I) -> TrackPosition<I> {
99
TrackPosition {
1010
input: source,
1111
samples_counted: 0,
@@ -154,7 +154,7 @@ mod tests {
154154
#[test]
155155
fn test_position() {
156156
let inner = SamplesBuffer::new(1, 1, vec![10i16, -10, 10, -10, 20, -20]);
157-
let mut source = inner.trackable();
157+
let mut source = inner.track_position();
158158

159159
assert_eq!(source.get_pos(), 0.0);
160160
source.next();

0 commit comments

Comments
 (0)