You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Introduce TSharedPtr<Audio::IProxyData> CreateProxyData() Fix up deprecated callsites. #jira UE-162062 #rb Rob.Gay #fyi Miles.Flanagan #preflight 639a0f262960b732207fc1e3 [CL 23515287 by phil popp in ue5-main branch]
38 lines
956 B
C++
38 lines
956 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "MetasoundDataReference.h"
|
|
#include "MetasoundDataTypeRegistrationMacro.h"
|
|
#include "IAudioProxyInitializer.h"
|
|
#include "Sound/AudioBus.h"
|
|
|
|
namespace Metasound
|
|
{
|
|
// Forward declare ReadRef
|
|
class FAudioBus;
|
|
|
|
// Metasound data type that holds onto a weak ptr. Mostly used as a placeholder until we have a proper proxy type.
|
|
class METASOUNDENGINE_API FAudioBusAsset
|
|
{
|
|
FAudioBusProxyPtr AudioBusProxy;
|
|
|
|
public:
|
|
|
|
FAudioBusAsset() = default;
|
|
FAudioBusAsset(const FAudioBusAsset&) = default;
|
|
FAudioBusAsset& operator=(const FAudioBusAsset& Other) = default;
|
|
|
|
FAudioBusAsset(const TSharedPtr<Audio::IProxyData>& InInitData);
|
|
|
|
const FAudioBusProxyPtr& GetAudioBusProxy() const
|
|
{
|
|
return AudioBusProxy;
|
|
}
|
|
|
|
};
|
|
|
|
DECLARE_METASOUND_DATA_REFERENCE_TYPES(FAudioBusAsset, METASOUNDENGINE_API, FAudioBusAssetTypeInfo, FAudioBusAssetReadRef, FAudioBusAssetWriteRef)
|
|
}
|
|
|