You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
This represents UE4/Main @17774255, Release-5.0 @17791557 and Dev-PerfTest @17789485 [CL 17794212 by aurel cordonnier in ue5-release-engine-test branch]
34 lines
867 B
C++
34 lines
867 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "Misc/Paths.h"
|
|
#include "AudioMixer.h"
|
|
#include "AudioMixerDevice.h"
|
|
#include "AudioMixerPlatformSDL.h"
|
|
#include COMPILED_PLATFORM_HEADER(AudioMixerSDLDefines.h)
|
|
|
|
class FAudioMixerModuleSDL : public IAudioDeviceModule
|
|
{
|
|
public:
|
|
virtual bool IsAudioMixerModule() const override { return true; }
|
|
|
|
virtual void StartupModule() override
|
|
{
|
|
IAudioDeviceModule::StartupModule();
|
|
|
|
FModuleManager::Get().LoadModuleChecked(TEXT("AudioMixerCore"));
|
|
}
|
|
|
|
virtual FAudioDevice* CreateAudioDevice() override
|
|
{
|
|
return new Audio::FMixerDevice(new Audio::FAudioMixerPlatformSDL());
|
|
}
|
|
|
|
virtual Audio::IAudioMixerPlatformInterface* CreateAudioMixerPlatformInterface() override
|
|
{
|
|
return new Audio::FAudioMixerPlatformSDL();
|
|
}
|
|
};
|
|
|
|
IMPLEMENT_MODULE(FAudioMixerModuleSDL, AudioMixerSDL);
|