pub fn process_audio_files(
folder: impl AsRef<Path>,
speed: f32,
formats: AudioFormat,
) -> Result<()>Expand description
Process all audio files in the specified folder recursively with the given speed multiplier.
§Arguments
folder- Path to the folder containing audio filesspeed- Speed multiplier (e.g., 1.5 for 1.5x speed)formats- A bitflags object indicating which audio formats to process.
§Returns
Result<()>- Ok(()) if successful, or an error if processing fails
§Example
use std::path::Path;
use audio_batch_speedup::{process_audio_files, AudioFormat};
let folder = Path::new("path/to/audio/files");
let speed = 1.5;
let formats = AudioFormat::OGG | AudioFormat::MP3;
process_audio_files(folder, speed, formats).unwrap();