17#ifndef RESONANCE_AUDIO_PLATFORM_WWISE_WWISE_COMMON_H_
18#define RESONANCE_AUDIO_PLATFORM_WWISE_WWISE_COMMON_H_
24#include "AK/SoundEngine/Common/AkCommonDefs.h"
25#include "AK/SoundEngine/Common/AkTypes.h"
26#include "AK/Tools/Common/AkAssert.h"
27#include "api/resonance_audio_api.h"
33const size_t kNumStereoChannels = 2;
36const AkUInt32 kCompanyId = 272;
39const AkUInt32 kRendererPluginId = 100;
42const AkUInt32 kRoomEffectsPluginId = 200;
45const AkUInt32 kRoomEffectsAttachmentPluginId = 201;
48const int kInvalidInstanceId = -1;
52const unsigned int kDefaultPluginDialogId = 0;
57 : api(
nullptr), num_instances(0), instance_id_counter(0) {}
61 std::unique_ptr<ResonanceAudioApi> api;
68 std::list<int> instance_ids;
71 int instance_id_counter;
80inline std::vector<T> GetChannelPointerArrayFromAkAudioBuffer(
81 AkAudioBuffer* buffer) {
82 const AkUInt32 num_channels = buffer->NumChannels();
83 AKASSERT(num_channels >= 0U);
85 std::vector<T> channel_ptrs(
static_cast<size_t>(num_channels));
86 for (AkUInt32 channel = 0; channel < num_channels; ++channel) {
87 channel_ptrs[channel] =
static_cast<T
>(buffer->GetChannel(channel));
Definition wwise_common.h:55