Files
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05:00

39 lines
1023 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "EpicRtcAudioTrackObserver.h"
#include UE_INLINE_GENERATED_CPP_BY_NAME(EpicRtcAudioTrackObserver)
namespace UE::PixelStreaming2
{
FEpicRtcAudioTrackObserver::FEpicRtcAudioTrackObserver(TObserverVariant<IPixelStreaming2AudioTrackObserver> UserObserver)
: UserObserver(UserObserver)
{
}
void FEpicRtcAudioTrackObserver::OnAudioTrackMuted(EpicRtcAudioTrackInterface* AudioTrack, EpicRtcBool bIsMuted)
{
if (UserObserver)
{
UserObserver->OnAudioTrackMuted(AudioTrack, bIsMuted);
}
}
void FEpicRtcAudioTrackObserver::OnAudioTrackFrame(EpicRtcAudioTrackInterface* AudioTrack, const EpicRtcAudioFrame& Frame)
{
if (UserObserver)
{
UserObserver->OnAudioTrackFrame(AudioTrack, Frame);
}
}
void FEpicRtcAudioTrackObserver::OnAudioTrackState(EpicRtcAudioTrackInterface* AudioTrack, const EpicRtcTrackState State)
{
if (UserObserver)
{
UserObserver->OnAudioTrackState(AudioTrack, State);
}
}
} // namespace UE::PixelStreaming2