Archival snapshot of the Virtual World Entertainment Tesla cockpit software, 1994-1996: MUNGA engine and L4 pod layer source (Borland C++ 5.0), BT/RP game code, and game content (models, audio, maps, gauges, Division renderer data). Includes third-party libraries: Division dVS/DPL graphics, HMI SOS audio, WATTCP networking. Files are preserved byte-for-byte (.gitattributes disables all line-ending conversion). README.md documents the layout, target hardware, and toolchain. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
143 lines
3.9 KiB
C++
143 lines
3.9 KiB
C++
//===========================================================================//
|
|
// File: l4audlvl.hpp //
|
|
// Project: MUNGA Brick: Audio Renderer //
|
|
// Contents: //
|
|
//---------------------------------------------------------------------------//
|
|
// Date Who Modification //
|
|
// -------- --- ---------------------------------------------------------- //
|
|
// 01/30/95 ECH Initial coding. //
|
|
//---------------------------------------------------------------------------//
|
|
// Copyright (C) 1994-1995, Virtual World Entertainment, Inc. //
|
|
// All Rights reserved worldwide //
|
|
// This unpublished sourcecode is PROPRIETARY and CONFIDENTIAL //
|
|
//===========================================================================//
|
|
|
|
#if !defined(L4AUDLVL_HPP)
|
|
# define L4AUDLVL_HPP
|
|
|
|
# if !defined(AUDLVL_HPP)
|
|
# include <audlvl.hpp>
|
|
# endif
|
|
|
|
# if !defined(L4AUDHDW_HPP)
|
|
# include <l4audhdw.hpp>
|
|
# endif
|
|
|
|
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~ PatchLevelOfDetail ~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
typedef MIDIValue SBKPatchID;
|
|
typedef MIDIValue SBKBankID;
|
|
|
|
class PatchLevelOfDetail:
|
|
public AudioLevelOfDetail
|
|
{
|
|
public:
|
|
//
|
|
//-----------------------------------------------------------------------
|
|
// Construction, Destruction, Testing
|
|
//-----------------------------------------------------------------------
|
|
//
|
|
PatchLevelOfDetail(PlugStream *stream);
|
|
~PatchLevelOfDetail();
|
|
|
|
Logical
|
|
TestInstance() const;
|
|
|
|
//
|
|
//-----------------------------------------------------------------------
|
|
// BuildFromPage
|
|
//-----------------------------------------------------------------------
|
|
//
|
|
static void
|
|
BuildFromPage(
|
|
PlugStream *stream,
|
|
NameList *name_list,
|
|
ClassID class_ID,
|
|
ObjectID object_ID
|
|
);
|
|
|
|
//
|
|
//-----------------------------------------------------------------------
|
|
// Accessors
|
|
//-----------------------------------------------------------------------
|
|
//
|
|
void
|
|
SetupPatch(AudioChannel *channel);
|
|
|
|
MIDINRPNValue
|
|
GetMaxMIDIFilterCutoff()
|
|
{return maxMIDIFilterCutoff;}
|
|
|
|
private:
|
|
//
|
|
//-----------------------------------------------------------------------
|
|
// Private data
|
|
//-----------------------------------------------------------------------
|
|
//
|
|
SBKBankID
|
|
bankID;
|
|
SBKPatchID
|
|
patchID;
|
|
MIDINRPNValue
|
|
maxMIDIFilterCutoff;
|
|
|
|
#ifdef LAB_ONLY
|
|
int
|
|
setupCount;
|
|
#endif
|
|
|
|
//
|
|
// Keep table of created patchs to verify that duplicates
|
|
// are not created
|
|
//
|
|
#if DEBUG_LEVEL>0
|
|
static TableOf<PatchLevelOfDetail*, unsigned int>
|
|
patchTableSocket;
|
|
#endif
|
|
};
|
|
|
|
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ PatchResource ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
class PatchResource:
|
|
public AudioResource
|
|
{
|
|
public:
|
|
//
|
|
//-----------------------------------------------------------------------
|
|
// Construction, Destruction, Testing
|
|
//-----------------------------------------------------------------------
|
|
//
|
|
PatchResource(PlugStream *stream);
|
|
~PatchResource();
|
|
|
|
Logical
|
|
TestInstance() const;
|
|
|
|
//
|
|
//-----------------------------------------------------------------------
|
|
// BuildFromPage
|
|
//-----------------------------------------------------------------------
|
|
//
|
|
static void
|
|
BuildFromPage(
|
|
PlugStream *stream,
|
|
NameList *name_list,
|
|
ClassID class_ID,
|
|
ObjectID object_ID
|
|
);
|
|
|
|
//
|
|
//-----------------------------------------------------------------------
|
|
// Accessors
|
|
//-----------------------------------------------------------------------
|
|
//
|
|
void
|
|
SetupPatch(AudioChannel *channel);
|
|
|
|
MIDINRPNValue
|
|
GetMaxMIDIFilterCutoff();
|
|
};
|
|
|
|
#endif
|
|
|