You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.0 KiB
C++
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) override;
|
|
void SerializeKey(ISoundKey& key, XmlNodeRef& keyNode, bool bLoading) override;
|
|
|
|
//! Check if track is masked
|
|
bool IsMasked(const uint32 mask) const override { return (mask & eTrackMask_MaskSound) != 0; }
|
|
|
|
bool UsesMute() const override { return true; }
|
|
|
|
static void Reflect(AZ::ReflectContext* context);
|
|
};
|