RavEngine
Loading...
Searching...
No Matches
wwise_fx_null_params.h
1/*
2Copyright 2018 Google Inc. All Rights Reserved.
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS-IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/
16
17#ifndef RESONANCE_AUDIO_PLATFORM_WWISE_WWISE_FX_NULL_PARAMS_H_
18#define RESONANCE_AUDIO_PLATFORM_WWISE_WWISE_FX_NULL_PARAMS_H_
19
20#include "AK/SoundEngine/Common/IAkPlugin.h"
21
22namespace vraudio {
23namespace wwise {
24
25// Class that implements a *null* plugin parameter node for the Wwise
26// integration. This is used by the plugins with *no* exposed parameters to
27// avoid redundant code.
28class WwiseFxNullParams : public AK::IAkPluginParam {
29 public:
30 WwiseFxNullParams() = default;
31
32 WwiseFxNullParams(const WwiseFxNullParams& wwise_fx_null_params_copy) =
33 default;
34
35 ~WwiseFxNullParams() override = default;
36
37 // Clones parameter node.
38 IAkPluginParam* Clone(AK::IAkPluginMemAlloc* memory_allocator) override;
39
40 // Initializes parameter node.
41 AKRESULT Init(AK::IAkPluginMemAlloc* memory_allocator,
42 const void* params_block, AkUInt32 block_size) override;
43
44 // Terminates parameter node.
45 AKRESULT Term(AK::IAkPluginMemAlloc* memory_allocator) override;
46
47 // Sets parameter block.
48 AKRESULT SetParamsBlock(const void* params_block,
49 AkUInt32 block_size) override;
50
51 // Updates a single parameter.
52 AKRESULT SetParam(AkPluginParamID param_id, const void* param_value,
53 AkUInt32 param_size) override;
54};
55
56} // namespace wwise
57} // namespace vraudio
58
59#endif // RESONANCE_AUDIO_PLATFORM_WWISE_WWISE_FX_NULL_PARAMS_H_
Definition wwise_fx_null_params.h:28