openspades/Sources/Audio/NullDevice.h
yvt cfb972f944 Improve code quality
- Overriding methods are clearly indicated with `override` keywords
- Remove redundant `virtual` keywords from destructors of subclasses
- Introduce `SPUnsupported()`, replacing most uses of
  `SPNotImplemented()`, which now serves as a dynamic "TODO" marker
2018-10-13 14:43:49 +09:00

53 lines
1.5 KiB
C++

/*
Copyright (c) 2013 yvt
This file is part of OpenSpades.
OpenSpades is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
OpenSpades is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with OpenSpades. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#include <array>
#include <map>
#include <memory>
#include <Client/IAudioDevice.h>
namespace spades {
namespace audio {
class NullDevice : public client::IAudioDevice {
protected:
virtual ~NullDevice();
public:
NullDevice();
client::IAudioChunk *RegisterSound(const char *name) override;
void SetGameMap(client::GameMap *) override;
void Play(client::IAudioChunk *, const Vector3 &origin,
const client::AudioParam &) override;
void PlayLocal(client::IAudioChunk *, const Vector3 &origin,
const client::AudioParam &) override;
void PlayLocal(client::IAudioChunk *, const client::AudioParam &) override;
void Respatialize(const Vector3 &eye, const Vector3 &front, const Vector3 &up) override;
};
}
}