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]>
45 lines
667 B
C++
45 lines
667 B
C++
// Allpass filter implementation
|
|
//
|
|
// Written by Jezar at Dreampoint, June 2000
|
|
// http://www.dreampoint.co.uk
|
|
// This code is public domain
|
|
|
|
#include "allpass.h"
|
|
|
|
// VERIFY: ebfd92d9 auto
|
|
// OFFSET: 0x00945150
|
|
allpass::allpass()
|
|
{
|
|
bufidx = 0;
|
|
}
|
|
|
|
// VERIFY: 7bd3ba61 auto
|
|
// OFFSET: 0x00945160
|
|
void allpass::setbuffer(float *buf, int size)
|
|
{
|
|
buffer = buf;
|
|
bufsize = size;
|
|
}
|
|
|
|
// VERIFY: 3df7356d auto
|
|
// OFFSET: 0x00945180
|
|
void allpass::mute()
|
|
{
|
|
for (int i=0; i<bufsize; i++)
|
|
buffer[i]=0;
|
|
}
|
|
|
|
// VERIFY: 92ab74ed auto
|
|
// OFFSET: 0x00945140
|
|
void allpass::setfeedback(float val)
|
|
{
|
|
feedback = val;
|
|
}
|
|
|
|
float allpass::getfeedback()
|
|
{
|
|
return feedback;
|
|
}
|
|
|
|
//ends
|