pub fn wave_file_to_file_info(file: &WaveFile) -> FileInfo
Convert a WaveFile to FileInfo for RPC transmission.