Add libatrac9 for Windows builds.

This commit is contained in:
Christopher Snowhill 2018-01-04 18:59:29 -08:00
parent 8491a16ea4
commit 9928380c49
4 changed files with 54 additions and 2 deletions

35
ext_includes/libatrac9.h Normal file
View File

@ -0,0 +1,35 @@
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
#ifdef COMPILING_DLL
#define DLLEXPORT __declspec(dllexport)
#else
#define DLLEXPORT __declspec(dllimport)
#endif
#define ATRAC9_CONFIG_DATA_SIZE 4
typedef struct {
int channels;
int channelConfigIndex;
int samplingRate;
int superframeSize;
int framesInSuperframe;
int frameSamples;
int wlength;
unsigned char configData[ATRAC9_CONFIG_DATA_SIZE];
} Atrac9CodecInfo;
DLLEXPORT void* Atrac9GetHandle(void);
DLLEXPORT void Atrac9ReleaseHandle(void* handle);
DLLEXPORT int Atrac9InitDecoder(void* handle, unsigned char *pConfigData);
DLLEXPORT int Atrac9Decode(void* handle, const unsigned char *pAtrac9Buffer, short *pPcmBuffer, int *pNBytesUsed);
DLLEXPORT int Atrac9GetCodecInfo(void* handle, Atrac9CodecInfo *pCodecInfo);
#ifdef __cplusplus
}
#endif

BIN
ext_libs/libatrac9.dll Normal file

Binary file not shown.

View File

@ -0,0 +1,17 @@
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQIcBAABCAAGBQJaTul6AAoJEI1smEefSt5x3ewP/1OdTsMz28COeeKJocnkBtPb
vDoG3av4TvhDbp62rlAExJP/k2mlRGwt7sospdZE3Be71BRH4lwuVsIlKDLOC6yE
NIX24vh99l7LbTOLz3ZgT72hz+nNuulx9n2/Pdh6HYf9oo6xMqAoNsrctQ8dPeKP
YWJqrnvvOn2fw1M64WkZqKQEFfUBFHfJhixfWzrB9ukWcjt2hCPis2kETvZ+73wA
HT77yMG/+1SylW8wvAWk3diQRMBv+T27737O5GjJ2nctyn48z9D1OCtLQVZlUqzH
ecPUsFfkSvTNnKzqPvRjawr6nJ0eTka3QL9RgdB9Ln0Vbi09AfXdOntqljLwPQD5
455GD9M6renLOEIs61ktCyWJ24cjh0b3NZF1oh6kk5911+AAoWutV6L6ZL9o3IWq
KPSl2PreL+DdpYmIO2O+b4EaA6L4HCYIxfPe0O7y35FkbzFyVBsgxB3JmMJmkuTC
yanUHYQB3PKQiFx/L3MZC/jsZjH8gu/4sgRdXisE3PDOWwUSBPXz3OomjQCLYXuY
FJ9MtfRIF2gGyD8Q4fW9VoWB0q2ZvNLtQbDOgbVeBMx8umFEmjepdqY36IDoE3qj
TH1Mw2AqbB5SMeXj8kr3LaEBpkOn8os/Tln4pM8wcInkHLWa4MX/hhn8LDBEzDvz
HLLliMh4pO/+YPdMln5N
=NFpC
-----END PGP SIGNATURE-----

View File

@ -57,7 +57,7 @@
<ClCompile>
<Optimization>Disabled</Optimization>
<AdditionalIncludeDirectories>../ext_includes;../../qaac/mp4v2/include;../../fdk-aac/libSYS/include;../../fdk-aac/libAACdec/include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;VGM_USE_FFMPEG;VGM_USE_G7221;VGM_USE_G719;VGM_USE_MP4V2;VGM_USE_FDKAAC;VGM_USE_MAIATRAC3PLUS;USE_ALLOCA;_DEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>WIN32;VGM_USE_FFMPEG;VGM_USE_G7221;VGM_USE_G719;VGM_USE_MP4V2;VGM_USE_FDKAAC;VGM_USE_MAIATRAC3PLUS;VGM_USE_ATRAC9;USE_ALLOCA;_DEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<MinimalRebuild>true</MinimalRebuild>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
@ -71,7 +71,7 @@
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<AdditionalIncludeDirectories>../ext_includes;../../qaac/mp4v2/include;../../fdk-aac/libSYS/include;../../fdk-aac/libAACdec/include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>_WIN32_WINNT=0x501;WIN32;VGM_USE_FFMPEG;VGM_USE_G7221;VGM_USE_G719;VGM_USE_MP4V2;VGM_USE_FDKAAC;VGM_USE_MAIATRAC3PLUS;USE_ALLOCA;NDEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>_WIN32_WINNT=0x501;WIN32;VGM_USE_FFMPEG;VGM_USE_G7221;VGM_USE_G719;VGM_USE_MP4V2;VGM_USE_FDKAAC;VGM_USE_MAIATRAC3PLUS;VGM_USE_ATRAC9;USE_ALLOCA;NDEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
<PrecompiledHeader>
</PrecompiledHeader>