Make Sound FilesystemAppComponent-compliant
This commit is contained in:
@@ -17,6 +17,8 @@ namespace Nz
|
||||
class NAZARA_AUDIO_API Sound final : public SoundEmitter
|
||||
{
|
||||
public:
|
||||
using Params = SoundBufferParams;
|
||||
|
||||
using SoundEmitter::SoundEmitter;
|
||||
Sound();
|
||||
Sound(AudioDevice& audioDevice, std::shared_ptr<SoundBuffer> soundBuffer);
|
||||
@@ -36,9 +38,9 @@ namespace Nz
|
||||
bool IsLooping() const override;
|
||||
bool IsPlayable() const;
|
||||
|
||||
bool LoadFromFile(const std::filesystem::path& filePath, const SoundBufferParams& params = SoundBufferParams());
|
||||
bool LoadFromMemory(const void* data, std::size_t size, const SoundBufferParams& params = SoundBufferParams());
|
||||
bool LoadFromStream(Stream& stream, const SoundBufferParams& params = SoundBufferParams());
|
||||
static std::shared_ptr<Sound> LoadFromFile(const std::filesystem::path& filePath, const Params& params = {});
|
||||
static std::shared_ptr<Sound> LoadFromMemory(const void* data, std::size_t size, const Params& params = {});
|
||||
static std::shared_ptr<Sound> LoadFromStream(Stream& stream, const Params& params = {});
|
||||
|
||||
void Pause() override;
|
||||
void Play() override;
|
||||
|
||||
Reference in New Issue
Block a user