12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- #pragma once
- #include "openmpt/all/BuildSettings.hpp"
- #include "modcommand.h"
- OPENMPT_NAMESPACE_BEGIN
- class CSoundFile;
- class EffectInfo
- {
- protected:
- const CSoundFile &sndFile;
- public:
- EffectInfo(const CSoundFile &sf) : sndFile(sf) {};
-
-
- bool GetEffectName(CString &pszDescription, ModCommand::COMMAND command, UINT param, bool bXX = false) const;
-
- UINT GetNumEffects() const;
-
- bool GetEffectInfo(UINT ndx, CString *s, bool bXX = false, ModCommand::PARAM *prangeMin = nullptr, ModCommand::PARAM *prangeMax = nullptr) const;
-
- LONG GetIndexFromEffect(ModCommand::COMMAND command, ModCommand::PARAM param) const;
-
- EffectCommand GetEffectFromIndex(UINT ndx, ModCommand::PARAM &refParam) const;
- EffectCommand GetEffectFromIndex(UINT ndx) const;
-
- UINT GetEffectMaskFromIndex(UINT ndx) const;
-
- bool GetEffectNameEx(CString &pszName, const ModCommand &m, uint32 param, CHANNELINDEX chn) const;
-
- bool IsExtendedEffect(UINT ndx) const;
-
- UINT MapValueToPos(UINT ndx, UINT param) const;
-
- UINT MapPosToValue(UINT ndx, UINT pos) const;
-
-
- UINT GetNumVolCmds() const;
-
- LONG GetIndexFromVolCmd(ModCommand::VOLCMD volcmd) const;
-
- VolumeCommand GetVolCmdFromIndex(UINT ndx) const;
-
- bool GetVolCmdInfo(UINT ndx, CString *s, ModCommand::VOL *prangeMin = nullptr, ModCommand::VOL *prangeMax = nullptr) const;
-
- bool GetVolCmdParamInfo(const ModCommand &m, CString *s) const;
- };
- OPENMPT_NAMESPACE_END
|