Modified source engine (2017) developed by valve and leaked in 2020. Not for commercial purporses
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

53 lines
1.2 KiB

//========= Copyright Valve Corporation, All rights reserved. ============//
//
// A class representing a sound
//
//=============================================================================
#ifndef DMESOUND_H
#define DMESOUND_H
#ifdef _WIN32
#pragma once
#endif
#include "datamodel/dmelement.h"
//-----------------------------------------------------------------------------
// A class representing a camera
//-----------------------------------------------------------------------------
class CDmeSound : public CDmElement
{
DEFINE_ELEMENT( CDmeSound, CDmElement );
public:
CDmaString m_SoundName;
CDmaString m_GameSoundName; // Only used if it's a gamesound
// Return false if it can't find the sound full path
bool ComputeSoundFullPath( char *pBuf, int nBufLen );
};
class CDmeGameSound : public CDmeSound
{
DEFINE_ELEMENT( CDmeGameSound, CDmeSound );
public:
CDmElement *FindOrAddPhonemeExtractionSettings();
CDmaVar< float > m_Volume;
CDmaVar< int > m_Level;
CDmaVar< int > m_Pitch;
CDmaVar< bool > m_IsStatic;
CDmaVar< int > m_Channel;
CDmaVar< int > m_Flags;
// CDmaElement m_Source;
// CDmaVar< bool > m_FollowSource;
CDmaVar< Vector > m_Origin;
CDmaVar< Vector > m_Direction;
};
#endif // DMESOUND_H