Files
o3de/Gems/Maestro/Code/Source/Cinematics/SoundTrack.h
T
Artur K 2a2847b15d Legacy code cleanup - part 3 (#3903)
* Legacy cleanup - part 3

Not much is left that can be easily removed,
so I think this will be last cleanup before the legacy functionality is replaced.

Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com>

* fix windows build, remove a few more things, re-add one file

Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com>

* Remove legacy RenderBus + more cleanups

Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com>

* Remove MaterialOwnerBus.h

Clean-up in Cry_Matrix34/33

Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com>
2021-09-07 12:14:16 -06:00

42 lines
1.0 KiB
C++

/*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#pragma once
#include "AnimTrack.h"
struct SSoundInfo
{
void Reset()
{
nSoundKeyStart = -1;
nSoundKeyStop = -1;
}
int nSoundKeyStart = -1;
int nSoundKeyStop = -1;
};
class CSoundTrack
: public TAnimTrack<ISoundKey>
{
public:
AZ_CLASS_ALLOCATOR(CSoundTrack, AZ::SystemAllocator, 0);
AZ_RTTI(CSoundTrack, "{B87D8805-F583-4154-B554-45518BC487F4}", IAnimTrack);
void GetKeyInfo(int key, const char*& description, float& duration);
void SerializeKey(ISoundKey& key, XmlNodeRef& keyNode, bool bLoading);
//! Check if track is masked
virtual bool IsMasked(const uint32 mask) const { return (mask & eTrackMask_MaskSound) != 0; }
bool UsesMute() const override { return true; }
static void Reflect(AZ::ReflectContext* context);
};