From c0269ead20d38d4ebedb5f22d9ef6a63e82b762b Mon Sep 17 00:00:00 2001 From: Luna Date: Fri, 9 Aug 2019 14:03:32 -0300 Subject: [PATCH] image: bump BufferSize --- src/image.zig | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/image.zig b/src/image.zig index 17a545d..28ca2ba 100644 --- a/src/image.zig +++ b/src/image.zig @@ -5,11 +5,11 @@ const custom = @import("custom.zig"); const plugins = @import("plugin.zig"); -/// Approximate size of the BMP header. +/// Approximate size of the BMP header, in bytes. pub const BMPHeaderSize: usize = 82000; -/// Buffer size for main copying -pub const BufferSize: usize = 60000; +/// Buffer size for main image copying. +pub const BufferSize: usize = 300000; pub const ImageError = error{ OpenFail, @@ -176,6 +176,7 @@ pub const Image = struct { return n_read == 1; } + /// Copy bytes from the current file to out_file. fn copyBytes( self: *Image, out_file: *c.SNDFILE,