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

48
src/fmod_sound_stream.h Executable file
View file

@ -0,0 +1,48 @@
#ifndef _FMOD_SOUND_STREAM_H
#define _FMOD_SOUND_STREAM_H
#include "fmod_settings.h"
#ifdef FMOD_SUPPORT_STREAMING
#ifndef _FMOD_SOUNDI_H
#include "fmod_soundi.h"
#endif
namespace FMOD
{
class Sample;
class ChannelStream;
class Stream : public SoundI
{
DECLARE_MEMORYTRACKER
public:
LinkedListNode mStreamNode;
ChannelStream *mChannel; /* Each stream has its own unique channel. */
Sample *mSample;
unsigned int mLastPos;
int mBlockSize;
int mLoopCountCurrent;
int mInitialPosition;
bool isStream() { return true; }
public:
Stream();
FMOD_RESULT fill(unsigned int offset, unsigned int length, unsigned int *read = 0, bool calledfromsentence = false);
FMOD_RESULT flush();
FMOD_RESULT setPosition(unsigned int position, FMOD_TIMEUNIT postype);
FMOD_RESULT getPosition(unsigned int *position, FMOD_TIMEUNIT postype);
FMOD_RESULT setLoopCount(int loopcount);
};
}
#endif
#endif