You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#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]
36 lines
1.1 KiB
C++
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;
|
|
};
|