Changeset View
Changeset View
Standalone View
Standalone View
source/simulation2/components/ICmpSoundManager.h
/* Copyright (C) 2017 Wildfire Games. | /* Copyright (C) 2020 Wildfire Games. | ||||
* This file is part of 0 A.D. | * This file is part of 0 A.D. | ||||
* | * | ||||
* 0 A.D. is free software: you can redistribute it and/or modify | * 0 A.D. is free software: you can redistribute it and/or modify | ||||
* it under the terms of the GNU General Public License as published by | * it under the terms of the GNU General Public License as published by | ||||
* the Free Software Foundation, either version 2 of the License, or | * the Free Software Foundation, either version 2 of the License, or | ||||
* (at your option) any later version. | * (at your option) any later version. | ||||
* | * | ||||
* 0 A.D. is distributed in the hope that it will be useful, | * 0 A.D. is distributed in the hope that it will be useful, | ||||
Show All 27 Lines | public: | ||||
/** | /** | ||||
* Start playing audio defined by a sound group file. | * Start playing audio defined by a sound group file. | ||||
* @param name VFS path of sound group .xml, relative to audio/ | * @param name VFS path of sound group .xml, relative to audio/ | ||||
* @param sourcePos 3d position of the sound emitter | * @param sourcePos 3d position of the sound emitter | ||||
*/ | */ | ||||
virtual void PlaySoundGroupAtPosition(const std::wstring& name, const CFixedVector3D& sourcePos) = 0; | virtual void PlaySoundGroupAtPosition(const std::wstring& name, const CFixedVector3D& sourcePos) = 0; | ||||
/** | |||||
* Start playing audio defined by a sound group file for a player | |||||
bb: period | |||||
* @param name VFS path of sound group .xml, relative to audio/ | |||||
* @param player the player entity | |||||
Done Inline Actionsprobably should be periods too, might be called inconsistent with comments above bb: probably should be periods too, might be called inconsistent with comments above | |||||
*/ | |||||
virtual void PlaySoundGroupForPlayer(const std::wstring& name, entity_id_t player) = 0; | |||||
virtual void StopMusic() = 0; | virtual void StopMusic() = 0; | ||||
DECLARE_INTERFACE_TYPE(SoundManager) | DECLARE_INTERFACE_TYPE(SoundManager) | ||||
}; | }; | ||||
#endif // INCLUDED_ICMPSOUNDMANAGER | #endif // INCLUDED_ICMPSOUNDMANAGER |
Wildfire Games · Phabricator
period