OpenTTD Source 20241224-master-gee860a5c8e
SoundLoader Class Referenceabstract

Base interface for a SoundLoader implementation. More...

#include <soundloader_type.h>

Inheritance diagram for SoundLoader:
PriorityBaseProvider< SoundLoader > BaseProvider< T > SoundLoader_Opus SoundLoader_Raw SoundLoader_Wav

Public Member Functions

 SoundLoader (std::string_view name, std::string_view description, int priority)
 
virtual bool Load (SoundEntry &sound, bool new_format, std::vector< uint8_t > &data)=0
 
- Public Member Functions inherited from PriorityBaseProvider< SoundLoader >
constexpr PriorityBaseProvider (std::string_view name, std::string_view description, int priority)
 
int GetPriority () const
 
- Public Member Functions inherited from BaseProvider< T >
constexpr BaseProvider (std::string_view name, std::string_view description)
 
std::string_view GetName () const
 
std::string_view GetDescription () const
 

Additional Inherited Members

- Protected Attributes inherited from PriorityBaseProvider< SoundLoader >
const int priority
 
- Protected Attributes inherited from BaseProvider< T >
const std::string_view name
 
const std::string_view description
 

Detailed Description

Base interface for a SoundLoader implementation.

Definition at line 17 of file soundloader_type.h.

Constructor & Destructor Documentation

◆ SoundLoader()

SoundLoader::SoundLoader ( std::string_view  name,
std::string_view  description,
int  priority 
)
inline

Definition at line 19 of file soundloader_type.h.

◆ ~SoundLoader()

virtual SoundLoader::~SoundLoader ( )
inlinevirtual

Definition at line 24 of file soundloader_type.h.


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