Files
jimmy smith d256cc1f44 Deprecate IAudioCodec API
#rb alfaroh.corney jake.burga
#jira none
#preflight 6477eaae1c5c2b3fa2e4e53d

[CL 25770939 by jimmy smith in ue5-main branch]
2023-06-02 15:27:25 -04:00

50 lines
1.1 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "IAudioCodec.h"
#include "UObject/NameTypes.h"
#include "AudioDecompress.h"
class ICompressedAudioInfo; // Forward declares.
namespace Audio
{
PRAGMA_DISABLE_DEPRECATION_WARNINGS
struct FBackCompatInput : public IDecoderInput
{
FName OldFormatName;
FSoundWaveProxyPtr Wave;
mutable FFormatDescriptorSection Desc;
mutable TUniquePtr<ICompressedAudioInfo> OldInfoObject;
FBackCompatInput(
FName InOldFormatName,
const FSoundWaveProxyPtr& InWave)
: OldFormatName(InOldFormatName)
, Wave(InWave)
{
}
bool HasError() const override;
bool IsEndOfStream() const override;
ICompressedAudioInfo* GetInfo(
FFormatDescriptorSection* OutDescriptor = nullptr) const;
bool FindSection(FEncodedSectionBase& OutSection) override;
int64 Tell() const override;
bool SeekToTime(const float InSeconds) override;
TArrayView<const uint8> PeekNextPacket(
int32 InMaxPacketLength) const override;
TArrayView<const uint8> PopNextPacket(
int32 InPacketSize) override;
};
PRAGMA_ENABLE_DEPRECATION_WARNINGS
}