chore(fmod): add files from Chensne/DragonNest
This commit is contained in:
commit
50fb3c6b1c
544 changed files with 315778 additions and 0 deletions
49
src/fmod_sample_software.h
Executable file
49
src/fmod_sample_software.h
Executable file
|
|
@ -0,0 +1,49 @@
|
|||
#ifndef _FMOD_SAMPLE_SOFTWARE_H
|
||||
#define _FMOD_SAMPLE_SOFTWARE_H
|
||||
|
||||
#include "fmod_settings.h"
|
||||
|
||||
#ifdef FMOD_SUPPORT_SOFTWARE
|
||||
|
||||
#include "fmod_dsp_resampler.h"
|
||||
#include "fmod_sound_sample.h"
|
||||
|
||||
namespace FMOD
|
||||
{
|
||||
class SampleSoftware : public Sample
|
||||
{
|
||||
DECLARE_MEMORYTRACKER
|
||||
|
||||
friend class OutputSoftware;
|
||||
friend class ChannelSoftware;
|
||||
friend class DSPWaveTable;
|
||||
friend class DSPCodec;
|
||||
|
||||
private:
|
||||
|
||||
void *mBuffer;
|
||||
void *mBufferMemory;
|
||||
char *mLoopPointDataEnd;
|
||||
char mLoopPointDataEndMemory[8];
|
||||
unsigned int mLoopPointDataEndOffset;
|
||||
|
||||
public:
|
||||
|
||||
SampleSoftware();
|
||||
|
||||
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
|
||||
|
||||
#endif
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue