From 1362a5a9dfcf51d663ddcc648ed9d05c2ce3f414 Mon Sep 17 00:00:00 2001 From: Simon Benezan Date: Mon, 29 Apr 2024 03:31:02 +0200 Subject: [PATCH] buffer with 32mb instead of 32kb --- crunchy-cli-core/src/utils/sync.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crunchy-cli-core/src/utils/sync.rs b/crunchy-cli-core/src/utils/sync.rs index 75356457..f96c4c1f 100644 --- a/crunchy-cli-core/src/utils/sync.rs +++ b/crunchy-cli-core/src/utils/sync.rs @@ -261,7 +261,7 @@ fn generate_chromaprint( // the stdout is read in chunks because keeping all the raw audio data in memory would take up // a significant amount of space let mut stdout = handle.stdout.take().unwrap(); - let mut buf: [u8; 32_000] = [0; 32_000]; + let mut buf: [u8; 32_000_000] = [0; 32_000_000]; while handle.try_wait()?.is_none() { loop { let read_bytes = stdout.read(&mut buf)?;