Audio: Make Music, Sound, SoundEmitter movable

This commit is contained in:
Lynix
2018-04-08 17:51:25 +02:00
parent 31fc8c9dad
commit 3c4c0fab66
7 changed files with 104 additions and 18 deletions

View File

@@ -20,7 +20,7 @@ namespace Nz
Sound() = default;
Sound(const SoundBuffer* soundBuffer);
Sound(const Sound& sound);
Sound(Sound&&) = default;
Sound(Sound&&) noexcept = default;
~Sound();
void EnableLooping(bool loop) override;
@@ -47,7 +47,7 @@ namespace Nz
void Stop() override;
Sound& operator=(const Sound&) = delete; ///TODO?
Sound& operator=(Sound&&) = default;
Sound& operator=(Sound&&) noexcept = default;
private:
SoundBufferConstRef m_buffer;