remove unused function

This commit is contained in:
mii443
2024-02-13 21:59:35 +09:00
parent 1f6b7b527f
commit b344519f5a

View File

@ -2,34 +2,6 @@ use std::io::Read;
use crate::args::Run;
fn reshape_audio_data<T>(input: &[T], channels: usize) -> Vec<Vec<T>>
where
T: Clone,
{
let mut output = vec![vec![]; channels];
for frame in input.chunks(channels) {
for (i, sample) in frame.iter().enumerate() {
output[i].push(sample.clone());
}
}
output
}
fn to_flat_audio_data<T>(input: &[Vec<T>]) -> Vec<T>
where
T: Clone,
{
let channels = input.len();
let frames = input[0].len();
let mut output = vec![];
for i in 0..frames {
for j in 0..channels {
output.push(input[j][i].clone());
}
}
output
}
pub fn run(run: Run) {
let config = std::path::Path::new(&run.config);