diff options
Diffstat (limited to 'intern/audaspace/intern/AUD_NULLDevice.cpp')
-rw-r--r-- | intern/audaspace/intern/AUD_NULLDevice.cpp | 50 |
1 files changed, 40 insertions, 10 deletions
diff --git a/intern/audaspace/intern/AUD_NULLDevice.cpp b/intern/audaspace/intern/AUD_NULLDevice.cpp index c9dfadd1839..272e1e4b5b2 100644 --- a/intern/audaspace/intern/AUD_NULLDevice.cpp +++ b/intern/audaspace/intern/AUD_NULLDevice.cpp @@ -31,14 +31,15 @@ AUD_NULLDevice::AUD_NULLDevice() { - m_specs.channels = AUD_CHANNELS_INVALID; - m_specs.format = AUD_FORMAT_INVALID; - m_specs.rate = AUD_RATE_INVALID; } -AUD_DeviceSpecs AUD_NULLDevice::getSpecs() +AUD_DeviceSpecs AUD_NULLDevice::getSpecs() const { - return m_specs; + AUD_DeviceSpecs specs; + specs.channels = AUD_CHANNELS_INVALID; + specs.format = AUD_FORMAT_INVALID; + specs.rate = AUD_RATE_INVALID; + return specs; } AUD_Handle* AUD_NULLDevice::play(AUD_IFactory* factory, bool keep) @@ -61,12 +62,12 @@ bool AUD_NULLDevice::stop(AUD_Handle* handle) return false; } -bool AUD_NULLDevice::setKeep(AUD_Handle* handle, bool keep) +bool AUD_NULLDevice::getKeep(AUD_Handle* handle) { return false; } -bool AUD_NULLDevice::sendMessage(AUD_Handle* handle, AUD_Message &message) +bool AUD_NULLDevice::setKeep(AUD_Handle* handle, bool keep) { return false; } @@ -94,17 +95,46 @@ void AUD_NULLDevice::unlock() { } -bool AUD_NULLDevice::checkCapability(int capability) +float AUD_NULLDevice::getVolume() const +{ + return 0; +} + +void AUD_NULLDevice::setVolume(float volume) +{ +} + +float AUD_NULLDevice::getVolume(AUD_Handle* handle) +{ + return std::numeric_limits<float>::quiet_NaN(); +} + +bool AUD_NULLDevice::setVolume(AUD_Handle* handle, float volume) { return false; } -bool AUD_NULLDevice::setCapability(int capability, void *value) +float AUD_NULLDevice::getPitch(AUD_Handle* handle) +{ + return std::numeric_limits<float>::quiet_NaN(); +} + +bool AUD_NULLDevice::setPitch(AUD_Handle* handle, float pitch) +{ + return false; +} + +int AUD_NULLDevice::getLoopCount(AUD_Handle* handle) +{ + return 0; +} + +bool AUD_NULLDevice::setLoopCount(AUD_Handle* handle, int count) { return false; } -bool AUD_NULLDevice::getCapability(int capability, void *value) +bool AUD_NULLDevice::setStopCallback(AUD_Handle* handle, stopCallback callback, void* data) { return false; } |