Skip to content

Commit

Permalink
Update for Monkey's Audio 10.96.
Browse files Browse the repository at this point in the history
  • Loading branch information
enzo1982 committed Feb 12, 2025
1 parent 1763844 commit 5a1b486
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 15 deletions.
4 changes: 2 additions & 2 deletions components/decoder/mac/dllinterface.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* BoCA - BonkEnc Component Architecture
* Copyright (C) 2007-2024 Robert Kausch <[email protected]>
* Copyright (C) 2007-2025 Robert Kausch <[email protected]>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
Expand Down Expand Up @@ -56,7 +56,7 @@ Bool LoadMACDLL()
*/
unsigned int interfaceVersion = ex_GetLibraryInterfaceVersion();

if (interfaceVersion > 11) { FreeMACDLL(); return False; }
if (interfaceVersion > 12) { FreeMACDLL(); return False; }

return True;
}
Expand Down
4 changes: 2 additions & 2 deletions components/encoder/mac/dllinterface.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* BoCA - BonkEnc Component Architecture
* Copyright (C) 2007-2024 Robert Kausch <[email protected]>
* Copyright (C) 2007-2025 Robert Kausch <[email protected]>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
Expand Down Expand Up @@ -56,7 +56,7 @@ Bool LoadMACDLL()
*/
unsigned int interfaceVersion = ex_GetLibraryInterfaceVersion();

if (interfaceVersion > 11) { FreeMACDLL(); return False; }
if (interfaceVersion > 12) { FreeMACDLL(); return False; }

return True;
}
Expand Down
5 changes: 4 additions & 1 deletion include/support/MAC/All.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ PLATFORM_APPLE
PLATFORM_LINUX
PLATFORM_ANDROID
**************************************************************************************************/
#if !defined(PLATFORM_WINDOWS) && !defined(PLATFORM_APPLE) && !defined(PLATFORM_LINUX)
#if !defined(PLATFORM_WINDOWS) && !defined(PLATFORM_APPLE) && !defined(PLATFORM_LINUX) && !defined(PLATFORM_ANDROID)
#pragma message("No platform set for MACLib, defaulting to Windows")
#define PLATFORM_WINDOWS
#endif
Expand Down Expand Up @@ -168,6 +168,9 @@ Global macros
// we use more than the Windows system MAX_PATH since filenames can actually be longer
#define APE_MAX_PATH 8192

// undefined file size (pipe, etc.)
#define APE_FILE_SIZE_UNDEFINED -1

#define POINTER_TO_INT64(POINTER) static_cast<APE::int64>(reinterpret_cast<uintptr_t>(POINTER))

#if defined(PLATFORM_WINDOWS)
Expand Down
10 changes: 5 additions & 5 deletions include/support/MAC/MACDll.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ extern "C"
{
DLLEXPORT int __stdcall GetVersionNumber();
#ifdef PLATFORM_WINDOWS
DLLEXPORT int __stdcall GetInterfaceCompatibility(int nVersion, BOOL bDisplayWarningsOnFailure = TRUE, HWND hwndParent = APE_NULL);
DLLEXPORT int __stdcall GetInterfaceCompatibility(int nVersion, bool bDisplayWarningsOnFailure = true, HWND hwndParent = APE_NULL);
#endif

DLLEXPORT const char * __stdcall GetLibraryVersionString();
DLLEXPORT unsigned int __stdcall GetLibraryVersionNumber();

DLLEXPORT unsigned int __stdcall GetLibraryInterfaceVersion();

DLLEXPORT int __stdcall TagFileSimple(const APE::str_ansi * pFilename, const char * pArtist, const char * pAlbum, const char * pTitle, const char * pComment, const char * pGenre, const char * pYear, const char * pTrack, BOOL bClearFirst, BOOL bUseOldID3);
DLLEXPORT int __stdcall TagFileSimple(const APE::str_ansi * pFilename, const char * pArtist, const char * pAlbum, const char * pTitle, const char * pComment, const char * pGenre, const char * pYear, const char * pTrack, bool bClearFirst, bool bUseOldID3);
DLLEXPORT int __stdcall GetID3Tag(const APE::str_ansi * pFilename, APE::ID3_TAG * pID3Tag);
DLLEXPORT int __stdcall GetID3TagW(const APE::str_utfn * pFilename, APE::ID3_TAG * pID3Tag);
DLLEXPORT int __stdcall RemoveTag(const APE::str_ansi * pFilename);
Expand All @@ -47,7 +47,7 @@ extern "C"

typedef int (__stdcall * proc_GetVersionNumber)();
#ifdef PLATFORM_WINDOWS
typedef int (__stdcall * proc_GetInterfaceCompatibility)(int, BOOL, HWND);
typedef int (__stdcall * proc_GetInterfaceCompatibility)(int, bool, HWND);
#endif

/**************************************************************************************************
Expand All @@ -62,7 +62,7 @@ typedef int (__stdcall * proc_APECompress_StartW)(APE_COMPRESS_HANDLE, const APE
typedef APE::int64 (__stdcall * proc_APECompress_AddData)(APE_COMPRESS_HANDLE, unsigned char *, int);
typedef int (__stdcall * proc_APECompress_GetBufferBytesAvailable)(APE_COMPRESS_HANDLE);
typedef unsigned char * (__stdcall * proc_APECompress_LockBuffer)(APE_COMPRESS_HANDLE, APE::int64 *);
typedef int (__stdcall * proc_APECompress_UnlockBuffer)(APE_COMPRESS_HANDLE, int, BOOL);
typedef int (__stdcall * proc_APECompress_UnlockBuffer)(APE_COMPRESS_HANDLE, int, bool);
typedef int (__stdcall * proc_APECompress_Finish)(APE_COMPRESS_HANDLE, unsigned char *, APE::int64, APE::int64);

extern "C"
Expand All @@ -74,7 +74,7 @@ extern "C"
DLLEXPORT APE::int64 __stdcall c_APECompress_AddData(APE_COMPRESS_HANDLE hAPECompress, unsigned char * pData, int nBytes);
DLLEXPORT int __stdcall c_APECompress_GetBufferBytesAvailable(APE_COMPRESS_HANDLE hAPECompress);
DLLEXPORT unsigned char * __stdcall c_APECompress_LockBuffer(APE_COMPRESS_HANDLE hAPECompress, APE::int64 * pBytesAvailable);
DLLEXPORT int __stdcall c_APECompress_UnlockBuffer(APE_COMPRESS_HANDLE hAPECompress, int nBytesAdded, BOOL bProcess = true);
DLLEXPORT int __stdcall c_APECompress_UnlockBuffer(APE_COMPRESS_HANDLE hAPECompress, int nBytesAdded, bool bProcess = true);
DLLEXPORT int __stdcall c_APECompress_Finish(APE_COMPRESS_HANDLE hAPECompress, unsigned char * pTerminatingData, APE::int64 nTerminatingBytes, APE::int64 nWAVTerminatingBytes);
}

Expand Down
10 changes: 5 additions & 5 deletions include/support/MAC/Version.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@
/* build batch file */
/*
#ifdef APE_BATCH_FILE_VERSION
Set _MA=1082
Set _MAV=10.82
Set _MA=1096
Set _MAV=10.96
#endif
*/

/* major version number */
#define APE_VERSION_MAJOR 10

/* build version number */
#define APE_VERSION_REVISION 82
#define APE_VERSION_REVISION_NUMBER 82
#define APE_VERSION_REVISION 96
#define APE_VERSION_REVISION_NUMBER 96

/* library interface version, update this whenever the signature of an exported function changes */
#define APE_INTERFACE_VERSION 11
#define APE_INTERFACE_VERSION 12

/* leave this so the end of file doesn't get truncated */

0 comments on commit 5a1b486

Please sign in to comment.