mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-11-24 15:00:11 +01:00
36 lines
820 B
C
36 lines
820 B
C
#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
|