Audio: Disable movement for musics

This commit is contained in:
Lynix 2017-09-30 14:45:30 +02:00
parent 85442a14fa
commit 396fd79c9a
2 changed files with 4 additions and 4 deletions

View File

@ -38,7 +38,7 @@ namespace Nz
public: public:
Music() = default; Music() = default;
Music(const Music&) = delete; Music(const Music&) = delete;
Music(Music&&) noexcept = default; Music(Music&&) = delete;
~Music(); ~Music();
bool Create(SoundStream* soundStream); bool Create(SoundStream* soundStream);
@ -67,7 +67,7 @@ namespace Nz
void Stop() override; void Stop() override;
Music& operator=(const Music&) = delete; Music& operator=(const Music&) = delete;
Music& operator=(Music&&) noexcept = default; Music& operator=(Music&&) = delete;
private: private:
MovablePtr<MusicImpl> m_impl = nullptr; MovablePtr<MusicImpl> m_impl = nullptr;

View File

@ -52,12 +52,12 @@ namespace Nz
virtual void Stop() = 0; virtual void Stop() = 0;
SoundEmitter& operator=(const SoundEmitter&) = delete; ///TODO SoundEmitter& operator=(const SoundEmitter&) = delete; ///TODO
SoundEmitter& operator=(SoundEmitter&&) = delete; ///TODO SoundEmitter& operator=(SoundEmitter&&) = delete;
protected: protected:
SoundEmitter(); SoundEmitter();
SoundEmitter(const SoundEmitter& emitter); SoundEmitter(const SoundEmitter& emitter);
SoundEmitter(SoundEmitter&&) = delete; ///TODO SoundEmitter(SoundEmitter&&) = delete;
SoundStatus GetInternalStatus() const; SoundStatus GetInternalStatus() const;