UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ISlateSoundDevice Class Referenceabstract

#include <ISlateSoundDevice.h>

+ Inheritance diagram for ISlateSoundDevice:

Public Member Functions

virtual void PlaySound (const FSlateSound &Sound, int32 UserIndex=0) const =0
 
virtual float GetSoundDuration (const FSlateSound &Sound) const =0
 
virtual ~ISlateSoundDevice ()
 

Detailed Description

Interface that Slate uses to play sounds.

Constructor & Destructor Documentation

◆ ~ISlateSoundDevice()

virtual ISlateSoundDevice::~ISlateSoundDevice ( )
inlinevirtual

Virtual destructor: because it is an interface / pure virtual base class.

Member Function Documentation

◆ GetSoundDuration()

virtual float ISlateSoundDevice::GetSoundDuration ( const FSlateSound Sound) const
pure virtual
Returns
The duration of the given sound resource

Implemented in FNullSlateSoundDevice.

◆ PlaySound()

virtual void ISlateSoundDevice::PlaySound ( const FSlateSound Sound,
int32  UserIndex = 0 
) const
pure virtual

Play the sound resource within the given Slate sound object

Implemented in FNullSlateSoundDevice.


The documentation for this class was generated from the following file: