From 4f27668aa60374636b81aa17e0de7cb98ce1c79a Mon Sep 17 00:00:00 2001 From: derselbst 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