Blender V2.61 - r43446
|
00001 /* 00002 * ***** BEGIN GPL LICENSE BLOCK ***** 00003 * 00004 * Copyright 2009-2011 Jörg Hermann Müller 00005 * 00006 * This file is part of AudaSpace. 00007 * 00008 * Audaspace is free software; you can redistribute it and/or modify 00009 * it under the terms of the GNU General Public License as published by 00010 * the Free Software Foundation; either version 2 of the License, or 00011 * (at your option) any later version. 00012 * 00013 * AudaSpace is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 * GNU General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU General Public License 00019 * along with Audaspace; if not, write to the Free Software Foundation, 00020 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00021 * 00022 * ***** END GPL LICENSE BLOCK ***** 00023 */ 00024 00030 #include <limits> 00031 00032 #include "AUD_NULLDevice.h" 00033 00034 AUD_NULLDevice::AUD_NULLHandle::AUD_NULLHandle() 00035 { 00036 } 00037 00038 bool AUD_NULLDevice::AUD_NULLHandle::pause() 00039 { 00040 return false; 00041 } 00042 00043 bool AUD_NULLDevice::AUD_NULLHandle::resume() 00044 { 00045 return false; 00046 } 00047 00048 bool AUD_NULLDevice::AUD_NULLHandle::stop() 00049 { 00050 return false; 00051 } 00052 00053 bool AUD_NULLDevice::AUD_NULLHandle::getKeep() 00054 { 00055 return false; 00056 } 00057 00058 bool AUD_NULLDevice::AUD_NULLHandle::setKeep(bool keep) 00059 { 00060 return false; 00061 } 00062 00063 bool AUD_NULLDevice::AUD_NULLHandle::seek(float position) 00064 { 00065 return false; 00066 } 00067 00068 float AUD_NULLDevice::AUD_NULLHandle::getPosition() 00069 { 00070 return std::numeric_limits<float>::quiet_NaN(); 00071 } 00072 00073 AUD_Status AUD_NULLDevice::AUD_NULLHandle::getStatus() 00074 { 00075 return AUD_STATUS_INVALID; 00076 } 00077 00078 float AUD_NULLDevice::AUD_NULLHandle::getVolume() 00079 { 00080 return std::numeric_limits<float>::quiet_NaN(); 00081 } 00082 00083 bool AUD_NULLDevice::AUD_NULLHandle::setVolume(float volume) 00084 { 00085 return false; 00086 } 00087 00088 float AUD_NULLDevice::AUD_NULLHandle::getPitch() 00089 { 00090 return std::numeric_limits<float>::quiet_NaN(); 00091 } 00092 00093 bool AUD_NULLDevice::AUD_NULLHandle::setPitch(float pitch) 00094 { 00095 return false; 00096 } 00097 00098 int AUD_NULLDevice::AUD_NULLHandle::getLoopCount() 00099 { 00100 return 0; 00101 } 00102 00103 bool AUD_NULLDevice::AUD_NULLHandle::setLoopCount(int count) 00104 { 00105 return false; 00106 } 00107 00108 bool AUD_NULLDevice::AUD_NULLHandle::setStopCallback(stopCallback callback, void* data) 00109 { 00110 return false; 00111 } 00112 00113 AUD_NULLDevice::AUD_NULLDevice() 00114 { 00115 } 00116 00117 AUD_NULLDevice::~AUD_NULLDevice() 00118 { 00119 } 00120 00121 AUD_DeviceSpecs AUD_NULLDevice::getSpecs() const 00122 { 00123 AUD_DeviceSpecs specs; 00124 specs.channels = AUD_CHANNELS_INVALID; 00125 specs.format = AUD_FORMAT_INVALID; 00126 specs.rate = AUD_RATE_INVALID; 00127 return specs; 00128 } 00129 00130 AUD_Reference<AUD_IHandle> AUD_NULLDevice::play(AUD_Reference<AUD_IReader> reader, bool keep) 00131 { 00132 return new AUD_NULLHandle(); 00133 } 00134 00135 AUD_Reference<AUD_IHandle> AUD_NULLDevice::play(AUD_Reference<AUD_IFactory> factory, bool keep) 00136 { 00137 return new AUD_NULLHandle(); 00138 } 00139 00140 void AUD_NULLDevice::stopAll() 00141 { 00142 } 00143 00144 void AUD_NULLDevice::lock() 00145 { 00146 } 00147 00148 void AUD_NULLDevice::unlock() 00149 { 00150 } 00151 00152 float AUD_NULLDevice::getVolume() const 00153 { 00154 return std::numeric_limits<float>::quiet_NaN(); 00155 } 00156 00157 void AUD_NULLDevice::setVolume(float volume) 00158 { 00159 }