summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sf.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sf.zig b/src/sf.zig
index a63da19..dca1cec 100644
--- a/src/sf.zig
+++ b/src/sf.zig
@@ -54,6 +54,7 @@ pub const SndFile = struct {
 
         var info: SF_INFO = undefined;
         const pimpl = sf_open(path.ptr, c_mode, &info);
+        _ = sf_command(pimpl, SFC_SET_SCALE_FLOAT_INT_READ, NULL, SF_TRUE);
         return SndFile {
             .pimpl = pimpl orelse return switch (sf_error(null)) {
                 SF_ERR_UNRECOGNISED_FORMAT => Error.UnrecognizedFormat,