16#ifndef AEONGAMES_SOUND_H
17#define AEONGAMES_SOUND_H
38 DLL
bool RegisterSoundDecoder (
const std::string& aMagick,
const std::function <
bool (
Sound&,
size_t,
const void* ) > & aDecoder );
Abstract base class representing a decoded sound resource.
virtual ~Sound()=default
Virtual destructor.
<- This is here just for the literals
DLL bool RegisterSoundDecoder(const std::string &aMagick, const std::function< bool(Sound &, size_t, const void *) > &aDecoder)
Register a sound decoder for the given magic identifier.
DLL bool DecodeSound(Sound &aSound, size_t aBufferSize, const void *aBuffer)
Decode sound data from a memory buffer.
DLL bool UnregisterSoundDecoder(const std::string &aMagick)
Unregister a previously registered sound decoder.