//===========================================================================// // 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 # endif # if !defined(L4AUDHDW_HPP) # include # 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 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