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 *****
28 #include "AUD_NULLDevice.h"
29 #include "AUD_IReader.h"
30 #include "AUD_IFactory.h"
32 AUD_NULLDevice::AUD_NULLDevice()
36 AUD_DeviceSpecs AUD_NULLDevice::getSpecs() const
38 AUD_DeviceSpecs specs;
39 specs.channels = AUD_CHANNELS_INVALID;
40 specs.format = AUD_FORMAT_INVALID;
41 specs.rate = AUD_RATE_INVALID;
45 AUD_Handle* AUD_NULLDevice::play(AUD_IFactory* factory, bool keep)
50 bool AUD_NULLDevice::pause(AUD_Handle* handle)
55 bool AUD_NULLDevice::resume(AUD_Handle* handle)
60 bool AUD_NULLDevice::stop(AUD_Handle* handle)
65 bool AUD_NULLDevice::getKeep(AUD_Handle* handle)
70 bool AUD_NULLDevice::setKeep(AUD_Handle* handle, bool keep)
75 bool AUD_NULLDevice::seek(AUD_Handle* handle, float position)
80 float AUD_NULLDevice::getPosition(AUD_Handle* handle)
82 return std::numeric_limits<float>::quiet_NaN();
85 AUD_Status AUD_NULLDevice::getStatus(AUD_Handle* handle)
87 return AUD_STATUS_INVALID;
90 void AUD_NULLDevice::lock()
94 void AUD_NULLDevice::unlock()
98 float AUD_NULLDevice::getVolume() const
103 void AUD_NULLDevice::setVolume(float volume)
107 float AUD_NULLDevice::getVolume(AUD_Handle* handle)
109 return std::numeric_limits<float>::quiet_NaN();
112 bool AUD_NULLDevice::setVolume(AUD_Handle* handle, float volume)
117 float AUD_NULLDevice::getPitch(AUD_Handle* handle)
119 return std::numeric_limits<float>::quiet_NaN();
122 bool AUD_NULLDevice::setPitch(AUD_Handle* handle, float pitch)