use audio resampler on the write_to_disk example (#68)

This commit is contained in:
Théo Monnom
2023-05-13 01:48:06 +02:00
committed by GitHub
parent 76210c9f67
commit 2cad45cb39
4 changed files with 21 additions and 11 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ impl AudioResampler {
dst_sample_rate as i32,
);
std::slice::from_raw_parts(self.sys_handle.data(), len)
std::slice::from_raw_parts(self.sys_handle.data(), len / 2)
}
}
}