1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
From 4f27668aa60374636b81aa17e0de7cb98ce1c79a Mon Sep 17 00:00:00 2001
From: derselbst <tom.mbrt@googlemail.com>
Date: Sun, 12 Oct 2025 16:50:44 +0200
Subject: Fix build for swami and anything that includes IpatchSndFile.h
Addresses #83
---
libinstpatch/IpatchSndFile.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libinstpatch/IpatchSndFile.h b/libinstpatch/IpatchSndFile.h
index f53a689..85a3b9d 100644
--- a/libinstpatch/IpatchSndFile.h
+++ b/libinstpatch/IpatchSndFile.h
@@ -67,14 +67,14 @@ typedef enum
*
* Default file format enum for #IPATCH_TYPE_SND_FILE_FORMAT.
*/
-#define IPATCH_SND_FILE_DEFAULT_FORMAT SF_FORMAT_WAV
+#define IPATCH_SND_FILE_DEFAULT_FORMAT 1 // must be the same as SF_FORMAT_WAV !
/**
* IPATCH_SND_FILE_DEFAULT_SUB_FORMAT:
*
* Default file sub format enum for #IPATCH_TYPE_SND_FILE_SUB_FORMAT.
*/
-#define IPATCH_SND_FILE_DEFAULT_SUB_FORMAT SF_FORMAT_PCM_16
+#define IPATCH_SND_FILE_DEFAULT_SUB_FORMAT 2 // must be the same as SF_FORMAT_PCM_16 !
/**
* IPATCH_SND_FILE_DEFAULT_ENDIAN:
--
2.30.2
|