/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or the license accompanying this file. Do not * remove or modify any license notices. This file is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * */ // Original file Copyright Crytek GMBH or its affiliates, used under license. #pragma once #include namespace Audio { /////////////////////////////////////////////////////////////////////////////////////////////////// class NullAudioProxy : public IAudioProxy { public: NullAudioProxy() {} ~NullAudioProxy() override {} void Initialize(const char* const, const bool = true) override {} void Release() override {} void Reset() override {} void ExecuteSourceTrigger([[maybe_unused]] TAudioControlID nTriggerID, [[maybe_unused]] const SAudioSourceInfo& rSourceInfo, [[maybe_unused]] const SAudioCallBackInfos & rCallbackInfos = SAudioCallBackInfos::GetEmptyObject()) override {} void ExecuteTrigger(const TAudioControlID, [[maybe_unused]] const SAudioCallBackInfos& rCallbackInfos = SAudioCallBackInfos::GetEmptyObject()) override {} void StopAllTriggers() override {} void StopTrigger(const TAudioControlID) override {} void SetSwitchState(const TAudioControlID, const TAudioSwitchStateID) override {} void SetRtpcValue(const TAudioControlID, const float) override {} void SetObstructionCalcType(const EAudioObjectObstructionCalcType) override {} void SetPosition(const SATLWorldPosition&) override {} void SetPosition(const AZ::Vector3&) override {} void SetMultiplePositions([[maybe_unused]] const MultiPositionParams& positions) override {} void SetEnvironmentAmount(const TAudioEnvironmentID, const float) override {} void SetCurrentEnvironments() override {} void ResetRtpcValues() override {} TAudioObjectID GetAudioObjectID() const override { return INVALID_AUDIO_OBJECT_ID; } }; /////////////////////////////////////////////////////////////////////////////////////////////////// class NullAudioSystem : public IAudioSystem { public: AZ_CLASS_ALLOCATOR(Audio::NullAudioSystem, AZ::SystemAllocator, 0) NullAudioSystem() { AudioSystemRequestBus::Handler::BusConnect(); AudioSystemThreadSafeRequestBus::Handler::BusConnect(); AZ_TracePrintf(AZ::Debug::Trace::GetDefaultSystemWindow(), "