#ifndef TDMus_SynthStatsH #define TDMus_SynthStatsH // ========================================================================== // File: TDMus_SynthStats.H // Authors: BCB_Code_Generator v2.00, // Darren Dwyer (source code, documentation, demos, website), // Hugh Edwards (documentation, icons) // Description: This file defines the TDMus_SynthStats Component // // "TDx9_Music_Library v1.00" // (c) 2005 BCB-Tools.com Pty. Ltd., Sydney, Australia. // All Rights Reserved. // // Refer to the 'Licence.Txt' file for licencing & copyright information. // ========================================================================== // -------------------------------------------------------------------------- #include "TDx_Library_Defns.H" #include "TDx_Library_Functions.H" // -------------------------------------------------------------------------- #include "TDx9_Music_Library_Defns.H" #include "TDx9_Music_Library_Functions.H" // -------------------------------------------------------------------------- // ========================================================================== // Class: TDMus_SynthStats // Description: The TDMus_SynthStats object is used to ... // ========================================================================== #if (__BORLANDC__ >= 0x0530) // BCB Version 3 + class PACKAGE TDMus_SynthStats : public TComponent { // -------------------------------------------------------------------------- #else // BCB Version 1 class TDMus_SynthStats : public TComponent { #endif // ========================================================================== __published: // ========================================================================== // ---------------------------------------------------------------------- // Property: CPUPerVoice // Description: ... // ---------------------------------------------------------------------- __property dword CPUPerVoice = { read=FGetCPUPerVoice, write=FSetCPUPerVoice, default=0 }; // ---------------------------------------------------------------------- // Property: FreeMemory // Description: ... // ---------------------------------------------------------------------- __property dword FreeMemory = { read=FGetFreeMemory, write=FSetFreeMemory, default=0 }; // ---------------------------------------------------------------------- // Property: LostNotes // Description: ... // ---------------------------------------------------------------------- __property dword LostNotes = { read=FGetLostNotes, write=FSetLostNotes, default=0 }; // ---------------------------------------------------------------------- // Property: PeakVolume // Description: ... // ---------------------------------------------------------------------- __property long PeakVolume = { read=FGetPeakVolume, write=FSetPeakVolume, default=0 }; // ---------------------------------------------------------------------- // Property: SynthMemUse // Description: ... // ---------------------------------------------------------------------- __property dword SynthMemUse = { read=FGetSynthMemUse, write=FSetSynthMemUse, default=0 }; // ---------------------------------------------------------------------- // Property: TotalCPU // Description: ... // ---------------------------------------------------------------------- __property dword TotalCPU = { read=FGetTotalCPU, write=FSetTotalCPU, default=0 }; // ---------------------------------------------------------------------- // Property: ValidStats // Description: ... // ---------------------------------------------------------------------- __property dword ValidStats = { read=FGetValidStats, write=FSetValidStats, default=0 }; // ---------------------------------------------------------------------- // Property: Voices // Description: ... // ---------------------------------------------------------------------- __property dword Voices = { read=FGetVoices, write=FSetVoices, default=0 }; // ---------------------------------------------------------------------- // Event: OnError() // Description: The OnError event is called when an error occurs in the // TDMus_SynthStats component. // ---------------------------------------------------------------------- __property TDx_Error OnError = {read=FOnError, write=FOnError, nodefault}; // ========================================================================== public: // ========================================================================== // ---------------------------------------------------------------------- // Property: ErrorValue // Description: The ErrorValue property contains the last error value // returned from a call to a TDMus_SynthStats method or // fget/fset. eg. S_OK or DDERR_SURFACELOST or TDX_ERROR // ---------------------------------------------------------------------- __property HRESULT ErrorValue = { read=FGetErrorValue, write=FSetErrorValue, default=S_OK }; // ---------------------------------------------------------------------- // Property: Size // Description: The Size property contains the size in bytes of the // internal DMUS_SYNTHSTATS structure. // ---------------------------------------------------------------------- __property dword Size = { read=FGetSize, write=FSetSize, nodefault }; // ---------------------------------------------------------------------- // Method: Clear() // Description: The Clear() method can be used to clear the contents of // the TDMus_SynthStats's internal DMUS_SYNTHSTATS // structure. // Note: if you have manually linked a structure member to a // chunk of memory, make sure you release this memory before // calling Clear(). // ---------------------------------------------------------------------- virtual void __fastcall Clear(); // ---------------------------------------------------------------------- // Constructor() and Destructor() // ---------------------------------------------------------------------- __fastcall TDMus_SynthStats(TComponent* Owner); virtual __fastcall ~TDMus_SynthStats(); // ---------------------------------------------------------------------- // Internal Structure Access // ---------------------------------------------------------------------- __property DMUS_SYNTHSTATS* Internal_DMUS_SYNTHSTATS_Ptr = { read=FGetInternal_DMUS_SYNTHSTATS_Ptr, nodefault }; void __fastcall Internal_DMUS_SYNTHSTATS_Update(); // ========================================================================== protected: // ========================================================================== // ---------------------------------------------------------------------- // Property Access Methods // ---------------------------------------------------------------------- dword __fastcall FGetCPUPerVoice(); void __fastcall FSetCPUPerVoice( dword pCPUPerVoice ); HRESULT __fastcall FGetErrorValue(); void __fastcall FSetErrorValue( HRESULT pErrorValue ); dword __fastcall FGetFreeMemory(); void __fastcall FSetFreeMemory( dword pFreeMemory ); dword __fastcall FGetLostNotes(); void __fastcall FSetLostNotes( dword pLostNotes ); long __fastcall FGetPeakVolume(); void __fastcall FSetPeakVolume( long pPeakVolume ); dword __fastcall FGetSize(); void __fastcall FSetSize( dword pSize ); dword __fastcall FGetSynthMemUse(); void __fastcall FSetSynthMemUse( dword pSynthMemUse ); dword __fastcall FGetTotalCPU(); void __fastcall FSetTotalCPU( dword pTotalCPU ); dword __fastcall FGetValidStats(); void __fastcall FSetValidStats( dword pValidStats ); dword __fastcall FGetVoices(); void __fastcall FSetVoices( dword pVoices ); // ========================================================================== private: // ========================================================================== // ---------------------------------------------------------------------- // Internal Structure Access // ---------------------------------------------------------------------- DMUS_SYNTHSTATS* __fastcall FGetInternal_DMUS_SYNTHSTATS_Ptr(); void __fastcall FSetInternal_DMUS_SYNTHSTATS( DMUS_SYNTHSTATS* pDMUS_SYNTHSTATS ); // ---------------------------------------------------------------------- // Property Variables // ---------------------------------------------------------------------- HRESULT fErrorValue; dword fSize; // ---------------------------------------------------------------------- // Structure Variables // ---------------------------------------------------------------------- DMUS_SYNTHSTATS fDMUS_SYNTHSTATS; // ---------------------------------------------------------------------- // Event Variables // ---------------------------------------------------------------------- TDx_Error FOnError; }; // -------------------------------------------------------------------------- #endif // --------------------------------------------------------------------------