Files
UnrealEngineUWP/Engine/Source/Runtime/AudioExtensions/Public/IAudioDecoderScheduler.h
jimmy smith dca344df83 Audio Codecs V1 Hello World and Unit tests
#rb ethan.geller, aaron.mcleran,phill.Popp
#jira UEAU-503
#jira UEAU-504
#jira UEAU-505

[CL 13926440 by jimmy smith in ue5-main branch]
2020-07-22 15:32:38 -04:00

36 lines
646 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "HAL/Platform.h"
#include "Templates/SharedPointer.h"
namespace Audio
{
struct IDecoderInput;
struct IDecoderOutput;
class FActiveDecodeHandle
{
uint32 Id;
public:
FActiveDecodeHandle(uint32 InId)
: Id(InId)
{}
bool IsValid() const { return Id != 0; }
};
struct IDecoderScheduler
{
static IDecoderScheduler& Get();
struct FStartDecodeArgs
{
uint32 StartingFrame = 0;
TSharedPtr<IDecoderInput> InputObject;
TSharedPtr<IDecoderOutput> OutputObject;
};
virtual FActiveDecodeHandle StartDecode(
FStartDecodeArgs&& ) = 0;
};
}