chore(fmod): add files from Chensne/DragonNest

This commit is contained in:
phaneron 2025-08-19 10:12:56 -04:00
commit 50fb3c6b1c
544 changed files with 315778 additions and 0 deletions

45
win32/src/fmod_sample_openal.h Executable file
View file

@ -0,0 +1,45 @@
#ifndef _FMOD_SAMPLE_OPENAL_H
#define _FMOD_SAMPLE_OPENAL_H
#include "fmod_settings.h"
#ifdef FMOD_SUPPORT_OPENAL
#include "fmod_dsp_resampler.h"
#include "fmod_sound_sample.h"
namespace FMOD
{
class SampleOpenAL : public Sample
{
friend class OutputOpenAL;
friend class ChannelOpenAL;
friend class DSPWaveTable;
private:
void *mBuffer;
void *mBufferMemory;
char *mLoopPointDataEnd;
char mLoopPointDataEndMemory[8];
bool mDataEndCopied;
public:
SampleOpenAL();
FMOD_RESULT release(bool freethis = true);
FMOD_RESULT lockInternal(unsigned int offset, unsigned int length, void **ptr1, void **ptr2, unsigned int *len1, unsigned int *len2);
FMOD_RESULT unlockInternal(void *ptr1, void *ptr2, unsigned int len1, unsigned int len2);
FMOD_RESULT setBufferData(void *data);
FMOD_RESULT setLoopPoints(unsigned int loopstart, unsigned int looplength);
FMOD_RESULT setLoopPointData();
FMOD_RESULT restoreLoopPointData();
FMOD_RESULT setMode(FMOD_MODE mode);
};
}
#endif /* FMOD_SUPPORT_OPENAL */
#endif