UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SoundWaveTimecodeInfo.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2#pragma once
3
4#include "Misc/FrameRate.h"
5
6#include "SoundWaveTimecodeInfo.generated.h"
7
10{
12
13 UPROPERTY(Category = Timecode, VisibleAnywhere)
14 uint64 NumSamplesSinceMidnight = ~0UL;
15
16 UPROPERTY(Category = Timecode, VisibleAnywhere)
17 uint32 NumSamplesPerSecond = 0;
18
19 UPROPERTY(Category = Timecode, VisibleAnywhere)
20 FString Description;
21
22 UPROPERTY(Category = Timecode, VisibleAnywhere)
23 FString OriginatorTime;
24
25 UPROPERTY(Category = Timecode, VisibleAnywhere)
26 FString OriginatorDate;
27
28 UPROPERTY(Category = Timecode, VisibleAnywhere)
29 FString OriginatorDescription;
30
31 UPROPERTY(Category = Timecode, VisibleAnywhere)
32 FString OriginatorReference;
33
34 UPROPERTY(Category = Timecode, VisibleAnywhere)
35 FFrameRate TimecodeRate;
36
37 UPROPERTY(Category = Timecode, VisibleAnywhere)
38 bool bTimecodeIsDropFrame = false;
39
40 inline bool operator==(const FSoundWaveTimecodeInfo& InRhs) const
41 {
42 // Note, we don't compare the strings.
43 return NumSamplesSinceMidnight == InRhs.NumSamplesSinceMidnight &&
44 NumSamplesPerSecond == InRhs.NumSamplesPerSecond &&
45 TimecodeRate == InRhs.TimecodeRate &&
46 bTimecodeIsDropFrame == InRhs.bTimecodeIsDropFrame;
47 }
48
49 inline double GetNumSecondsSinceMidnight() const
50 {
51 if( NumSamplesSinceMidnight != ~0 && NumSamplesPerSecond > 0)
52 {
53 return (double)NumSamplesSinceMidnight / NumSamplesPerSecond;
54 }
55 return 0.0;
56 }
57};
58
FPlatformTypes::uint64 uint64
A 64-bit unsigned integer.
Definition Platform.h:1117
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define USTRUCT(...)
Definition ObjectMacros.h:746
#define GENERATED_USTRUCT_BODY(...)
Definition ObjectMacros.h:767
uint32_t uint32
Definition binka_ue_file_header.h:6
@ false
Definition radaudio_common.h:23
Definition FrameRate.h:21
Definition SoundWaveTimecodeInfo.h:10
double GetNumSecondsSinceMidnight() const
Definition SoundWaveTimecodeInfo.h:49