Files
wowdecomp/Engine/Source/SoundEngine/fmodex/src/fmod_plugin.h
T
SatyandClaude Opus 5.5 fe133bbc9f fmodex: port core to 4.09 / 12340 behaviour and layout
Port the FMOD Ex core from the 4.30 source to the 4.09.07 behaviour and
layout of 12340, function by function against the binary.

- Plugins, files and DSP: PluginFactory index API, File, DSPNet, the DSP
  units (resampler, wavetable, codec, soundcard, filter), DSPI mix API.
- Sounds: SoundI, Sample/SampleSoftware, Stream, sync points.
- Channels: ChannelReal (37-slot vtable), ChannelSoftware, ChannelStream,
  ChannelEmulated, ChannelRealManual3D, ChannelI (stopEx with 7 bools),
  ChannelGroupI, SoundGroupI, SpeakerLevelsPool.
- System: all 72 SystemI functions of 12340, the System wrappers, and
  the unused 4.09 API on the public signatures.
- Async, memory (LocalMemoryCounter), thread, geometry.
- Outputs: DirectSound, OpenAL, WinMM, WASAPI (timer based), ASIO,
  polled and software; single-device recording.
- Codecs: FSB, MPEG memory block, IT/XM/S3M/MOD/MIDI.
- fmod.hpp: Channel::getFadeVolume (0x8D0F60, used by the client).

fmod_build.sh: 0 errors. Layout: all rows match 12340 except CodecMIDI,
CodecFLAC, CodecOggVorbis and CodecVAG. Not yet run through verify.py.
Notes: re/notes/304_fmod_offsets.md.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-26 03:54:45 +02:00

53 lines
809 B
C++

#ifndef _FMOD_PLUGIN_H
#define _FMOD_PLUGIN_H
#include "fmod_settings.h"
#include "fmod.h"
#include "fmod_debug.h"
#include "fmod_globals.h"
#include "fmod_linkedlist.h"
#include "fmod_memory.h"
#include "fmod_os_misc.h"
#include "fmod_string.h"
#include <string.h>
namespace FMOD
{
class File;
class MemPool;
class Plugin : public LinkedListNode
{
friend class SystemI;
public:
SystemI *mSystem;
/*
Stuff that is passed into the driver for internal use
*/
Global *mGlobal;
public:
Plugin()
{
mGlobal = gGlobal;
}
virtual FMOD_RESULT release();
FMOD_RESULT init()
{
gGlobal = mGlobal;
return FMOD_OK;
}
};
}
#endif