Files
UnrealEngineUWP/Engine/Source/Runtime/BinkAudioDecoder/Module/Public/BinkAudioInfo.h
dan thompson d7eb3b2389 Removing IStreamedCompressedInfo::SampleRate as it was almost never set, was a bad bit depth, and never read globally.
#rb aaron.mcleron
#pf 60f9f43a1f926d0001f7d730

#ROBOMERGE-SOURCE: CL 16938497 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v838-16927207)

[CL 16938502 by dan thompson in ue5-release-engine-test branch]
2021-07-23 12:40:27 -04:00

36 lines
1.1 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "AudioDecompress.h"
/**
* Decoder thunk to the Bink Audio libraries. Also manages file parsing
* for the cooked data.
*/
class FBinkAudioInfo : public IStreamedCompressedInfo
{
public:
BINKAUDIODECODER_API FBinkAudioInfo();
BINKAUDIODECODER_API virtual ~FBinkAudioInfo();
//~ Begin IStreamedCompressedInfo Interface
virtual bool ParseHeader(const uint8* InSrcBufferData, uint32 InSrcBufferDataSize, FSoundQualityInfo* QualityInfo) override;
virtual int32 GetFrameSize() override;
virtual uint32 GetMaxFrameSizeSamples() const override;
virtual bool CreateDecoder() override;
virtual void SeekToTime(const float SeekToTimeSeconds) override;
virtual FDecodeResult Decode(const uint8* CompressedData, const int32 CompressedDataSize, uint8* OutPCMData, const int32 OutputPCMDataSize) override;
//~ End IStreamedCompressedInfo Interface
protected:
// copied from header during ParseHeader
uint32 MaxCompSpaceNeeded;
uint32 SampleRate;
struct BinkAudioDecoder* Decoder = 0;
uint8* RawMemory = 0;
};