IAkRTPCSubscriber.h 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /*******************************************************************************
  2. The content of this file includes portions of the AUDIOKINETIC Wwise Technology
  3. released in source code form as part of the SDK installer package.
  4. Commercial License Usage
  5. Licensees holding valid commercial licenses to the AUDIOKINETIC Wwise Technology
  6. may use this file in accordance with the end user license agreement provided
  7. with the software or, alternatively, in accordance with the terms contained in a
  8. written agreement between you and Audiokinetic Inc.
  9. Apache License Usage
  10. Alternatively, this file may be used under the Apache License, Version 2.0 (the
  11. "Apache License"); you may not use this file except in compliance with the
  12. Apache License. You may obtain a copy of the Apache License at
  13. http://www.apache.org/licenses/LICENSE-2.0.
  14. Unless required by applicable law or agreed to in writing, software distributed
  15. under the Apache License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
  16. OR CONDITIONS OF ANY KIND, either express or implied. See the Apache License for
  17. the specific language governing permissions and limitations under the License.
  18. Copyright (c) 2023 Audiokinetic Inc.
  19. *******************************************************************************/
  20. // IAkRTPCSubscriber.h
  21. /// \file
  22. /// RTPC Subscriber interface.
  23. #ifndef _IAK_RTPC_SUBSCRIBER_H_
  24. #define _IAK_RTPC_SUBSCRIBER_H_
  25. #include <AK/SoundEngine/Common/AkTypes.h>
  26. namespace AK
  27. {
  28. /// Real-Time Parameter Control Subscriber interface.
  29. /// This interface must be implemented by every AK::IAkPluginParam implementation, allowing
  30. /// real-time editing with Wwise and in-game RTPC control.
  31. /// \akwarning
  32. /// The functions in this interface are not thread-safe, unless stated otherwise.
  33. /// \endakwarning
  34. /// \sa
  35. /// - AK::IAkPluginParam
  36. class IAkRTPCSubscriber
  37. {
  38. protected:
  39. /// Virtual destructor on interface to avoid warnings.
  40. virtual ~IAkRTPCSubscriber(){}
  41. public:
  42. /// This function will be called to notify the subscriber every time a selected value is entered or modified
  43. /// \return AK_Success if successful, AK_Fail otherwise
  44. virtual AKRESULT SetParam(
  45. AkPluginParamID in_paramID, ///< Plug-in parameter ID
  46. const void * in_pParam, ///< Parameter value pointer
  47. AkUInt32 in_uParamSize ///< Parameter size
  48. ) = 0;
  49. };
  50. }
  51. #endif //_IAK_RTPC_SUBSCRIBER_H_