4 * ***** BEGIN LGPL LICENSE BLOCK *****
6 * Copyright 2009 Jörg Hermann Müller
8 * This file is part of AudaSpace.
10 * AudaSpace is free software: you can redistribute it and/or modify
11 * it under the terms of the GNU Lesser General Public License as published by
12 * the Free Software Foundation, either version 3 of the License, or
13 * (at your option) any later version.
15 * AudaSpace is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License for more details.
20 * You should have received a copy of the GNU Lesser General Public License
21 * along with AudaSpace. If not, see <http://www.gnu.org/licenses/>.
23 * ***** END LGPL LICENSE BLOCK *****
26 #ifndef AUD_NULLDEVICE
27 #define AUD_NULLDEVICE
29 #include "AUD_IDevice.h"
32 * This device plays nothing.
34 class AUD_NULLDevice : public AUD_IDevice
38 * Creates a new NULL device.
42 virtual AUD_DeviceSpecs getSpecs() const;
43 virtual AUD_Handle* play(AUD_IFactory* factory, bool keep = false);
44 virtual bool pause(AUD_Handle* handle);
45 virtual bool resume(AUD_Handle* handle);
46 virtual bool stop(AUD_Handle* handle);
47 virtual bool getKeep(AUD_Handle* handle);
48 virtual bool setKeep(AUD_Handle* handle, bool keep);
49 virtual bool seek(AUD_Handle* handle, float position);
50 virtual float getPosition(AUD_Handle* handle);
51 virtual AUD_Status getStatus(AUD_Handle* handle);
53 virtual void unlock();
54 virtual float getVolume() const;
55 virtual void setVolume(float volume);
56 virtual float getVolume(AUD_Handle* handle);
57 virtual bool setVolume(AUD_Handle* handle, float volume);
58 virtual float getPitch(AUD_Handle* handle);
59 virtual bool setPitch(AUD_Handle* handle, float pitch);
60 virtual int getLoopCount(AUD_Handle* handle);
61 virtual bool setLoopCount(AUD_Handle* handle, int count);
64 #endif //AUD_NULLDEVICE