Skip to content

Commit fd5ad9b

Browse files
committed
Fix process all len calc
1 parent 2cc6bdb commit fd5ad9b

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/error.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,14 +198,14 @@ impl fmt::Display for ResampleError {
198198
Self::InsufficientInputBufferSize { expected, actual } => {
199199
write!(
200200
f,
201-
"Insufficient buffer size {}, expected {} frames",
201+
"Insufficient input buffer size {}, expected {} frames",
202202
actual, expected
203203
)
204204
}
205205
Self::InsufficientOutputBufferSize { expected, actual } => {
206206
write!(
207207
f,
208-
"Insufficient buffer size {}, expected {} frames",
208+
"Insufficient output buffer size {}, expected {} frames",
209209
actual, expected
210210
)
211211
}

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ where
220220
indexing.output_offset += nbr_out;
221221
if frames_to_trim > 0 && output_len > frames_to_trim {
222222
debug!(
223-
"output, {} is longer than delay to trim, {}, trimming..",
223+
"output, {} is longer than delay to trim, {}, trimming..",
224224
output_len, frames_to_trim
225225
);
226226
// move useful output data to start of output buffer

0 commit comments

Comments
 (0)