Go to the documentation of this file.
37 template<AkUInt32 TSize>
98 :
params(in_sourcePosition, in_fDistanceScalingFactor, in_fLevel)
499 namespace SpatialAudio
AkTransform virtualPos
Virtual emitter position. This is the position that is passed to the sound engine to render the audio...
#define AK_DEFAULT_DIFFR_SHADOW_ATTEN
bool RoomGameObj_KeepRegistered
AKSOUNDENGINE_API AKRESULT QueryWetDiffraction(AkPortalID in_portal, AkReal32 &out_wetDiffraction)
AkRoomParams(const AkRoomParams &in_rhs)
Copy Constructor.
AKSOUNDENGINE_API AKRESULT UnregisterListener(AkGameObjectID in_gameObjectID)
Triangle for a spatial audio mesh.
AkUInt32 numPathPoints
Number of valid elements in the pathPoint[], surfaces[], and diffraction[] arrays.
AkReal32 fDiffractionShadowAttenFactor
Multiplier that is applied to the distance attenuation of diffracted sounds (sounds that are in the '...
AkVertex(AkReal32 in_X, AkReal32 in_Y, AkReal32 in_Z)
Constructor.
AkImageSourceParams params
Image source parameters.
AKSOUNDENGINE_API AKRESULT QueryReflectionPaths(AkGameObjectID in_gameObjectID, AkVector &out_listenerPos, AkVector &out_emitterPos, AkReflectionPathInfo *out_aPaths, AkUInt32 &io_uArraySize)
Parameters passed to SetPortal.
AkVector imageSource
Apparent source of the reflected sound that follows this path.
AKSOUNDENGINE_API AKRESULT RemovePortal(AkPortalID in_PortalID)
AkTriIdx NumTriangles
Number of triangles in Triangles.
AK::SpatialAudio::String name
Name given to image source, can be used to identify the image source in the AK Reflect plugin UI.
AkVertIdx point2
Index into the vertex table passed into AkGeometryParams that describes the third vertex of the trian...
AkReal32 RoomGameObj_AuxSendLevelToSelf
AKSOUNDENGINE_API AKRESULT SetGameObjectInRoom(AkGameObjectID in_gameObjectID, AkRoomID in_CurrentRoomID)
AkAcousticSurface()
Constructor.
AkTriangle(AkVertIdx in_pt0, AkVertIdx in_pt1, AkVertIdx in_pt2, AkSurfIdx in_surfaceInfo)
Constructor.
AKSOUNDENGINE_API AKRESULT Init(const AkSpatialAudioInitSettings &in_initSettings)
Initialize the SpatialAudio API.
AkSpatialAudioInitSettings()
AkPortalParams()
Constructor.
AkImageSourceSettings(AkVector in_sourcePosition, AkReal32 in_fDistanceScalingFactor, AkReal32 in_fLevel)
AkVector pathPoint[AK_MAX_REFLECTION_PATH_LENGTH]
#define AK_INVALID_VERTEX
AkRoomParams()
Constructor.
AkUInt32 nodeCount
Total number of nodes in the path. Defines the number of valid entries in the nodes,...
AkUInt64 AkGameObjectID
Game object ID.
#define AK_EXTERNAPIFUNC(_type, _name)
AKSOUNDENGINE_API AKRESULT SetEarlyReflectionsAuxSend(AkGameObjectID in_gameObjectID, AkAuxBusID in_auxBusID)
AK::SpatialAudio::OsString strName
Name used to identify portal (optional).
AkUInt32 uNumTexture
Number of valid textures in the texture array.
AKRESULT
Standard function call result.
const char * strName
Name to describe this surface.
AkVector nodes[kMaxNodes]
AkAcousticSurface surfaces[AK_MAX_REFLECTION_PATH_LENGTH]
AkUInt32 AkImageSourceID
Image Source ID.
AkAcousticSurface * Surfaces
AKSOUNDENGINE_API AKRESULT RemoveImageSource(AkImageSourceID in_srcID, AkUniqueID in_AuxBusID, AkGameObjectID in_gameObjectID)
@ DiffractionFlags_UseBuiltInParam
Set the Wwise built-in game parameter value for diffraction angle. This is a flexible approach that c...
AkDiffractionFlags
AkDiffractionFlags determine if diffraction values for sound passing through portals will be calculat...
AK::SpatialAudio::OsString strName
Name used to identify room (optional)
AKSOUNDENGINE_API AKRESULT SetGeometry(AkGeometrySetID in_GeomSetID, const AkGeometryParams &in_params)
Structure for retrieving information about the indirect paths of a sound that have been calculated vi...
AKSOUNDENGINE_API AKRESULT SetPortal(AkPortalID in_PortalID, const AkPortalParams &in_Params)
bool isOccluded
True if the sound path was occluded. Note that the spatial audio library must be recompiled with #def...
AkUInt32 AkUniqueID
Unique 32-bit ID.
AkRoomParams & operator=(const AkRoomParams &in_rhs)
Assignment operator.
void SetOneTexture(AkUniqueID in_texture)
AkReal32 angles[kMaxNodes]
Raw diffraction angles at each point, in radians.
bool bEnableTransmission
Enable modeling of transmission of sound through walls.
AKSOUNDENGINE_API AKRESULT ClearImageSources(AkUniqueID in_AuxBusID=AK_INVALID_AUX_ID, AkGameObjectID in_gameObjectID=AK_INVALID_GAME_OBJECT)
@ DiffractionFlags_CalcEmitterVirtualPosition
An emitter that is not in the same room as the listener will have its apparent or virtual position ca...
AkPortalID portals[kMaxNodes]
AkUInt32 uNumberOfPrimaryRays
The number of primary rays used in stochastic ray casting.
AkUInt32 uMaxReflectionOrder
Maximum reflection order [1, 4] - the number of 'bounces' in a reflection path. A higher reflection o...
AkTriangle()
Constructor.
void SetName(const char *in_pName)
Initialization settings of the spatial audio module.
Vertex for a spatial audio mesh.
AkReal32 diffraction[AK_MAX_REFLECTION_PATH_LENGTH]
Diffraction amount, normalized to the range [0,1].
#define AK_DEFAULT_DIFFR_SHADOW_DEGREES
#define AK_MAX_REFLECTION_PATH_LENGTH
AKSOUNDENGINE_API AKRESULT RemoveRoom(AkRoomID in_RoomID)
AKSOUNDENGINE_API AKRESULT SetReflectionsOrder(AkUInt32 in_uReflectionsOrder, bool in_bUpdatePaths)
AkVertIdx point0
Index into the vertex table passed into AkGeometryParams that describes the first vertex of the trian...
Base type for ID's used by Wwise spatial audio.
AkUInt32 numReflections
Number of reflections in the pathPoint[] array. Shadow zone diffraction does not count as a reflectio...
@ DiffractionFlags_UseObstruction
Use Wwise obstruction for dry-path diffraction. Dry-path diffraction is related to the angle off of a...
static const AkUniqueID AK_INVALID_UNIQUE_ID
Invalid unique 32-bit ID.
bool EnableDiffraction
Switch to enable or disable geometric diffraction for this Geometry.
AkSurfIdx NumSurfaces
Number of of AkTriangleInfo structures in in_pTriangleInfo and number of AkTriIdx's in in_infoMap.
AkReal32 level
Linear gain applied to image source.
static const AkUInt32 kMaxNodes
Defines the maximum number of nodes that a user can retrieve information about. Longer paths will be ...
AkReal32 fMovementThreshold
Amount that an emitter or listener has to move to trigger a recalculation of reflections/diffraction....
static AkUInt32 GrowBy(AkUInt32)
AkImageSourceSettings & operator=(const AkImageSourceSettings &src)
Operator =.
AkRoomID rooms[kMaxNodes+1]
bool EnableDiffractionOnBoundaryEdges
Switch to enable or disable geometric diffraction on boundary edges for this Geometry....
static const AkGameObjectID AK_INVALID_GAME_OBJECT
Invalid game object (may also mean all game objects)
AKSOUNDENGINE_API AKRESULT SetImageSource(AkImageSourceID in_srcID, const AkImageSourceSettings &in_info, AkUniqueID in_AuxBusID, AkRoomID in_roomID, AkGameObjectID in_gameObjectID)
AkImageSourceTexture texture
Acoustic texture that goes with this image source.
AkUInt32 uDiffractionFlags
Enable or disable specific diffraction features. See AkDiffractionFlags.
#define AK_INVALID_SURFACE
static const AkAuxBusID AK_INVALID_AUX_ID
Invalid auxiliary bus ID (or no Aux bus ID)
@ DefaultDiffractionFlags
AkVertex * Vertices
Number of vertices in Vertices.
AkUInt32 AkAuxBusID
Auxilliary bus ID.
AkUInt32 uMaxSoundPropagationDepth
Maximum number of portals that sound can propagate through; must be less than or equal to AK_MAX_SOUN...
AKSOUNDENGINE_API AKRESULT QueryDiffractionPaths(AkGameObjectID in_gameObjectID, AkVector &out_listenerPos, AkVector &out_emitterPos, AkDiffractionPathInfo *out_aPaths, AkUInt32 &io_uArraySize)
bool bEnableDiffractionOnReflection
Enable diffraction at the end/beginning of reflection paths. Diffraction on reflection causes reflect...
AKSOUNDENGINE_API AKRESULT SetEarlyReflectionsVolume(AkGameObjectID in_gameObjectID, AkReal32 in_fSendVolume)
AkGeometryParams()
Constructor.
AKSOUNDENGINE_API AKRESULT SetPortalObstructionAndOcclusion(AkPortalID in_PortalID, AkReal32 in_fObstruction, AkReal32 in_fOcclusion)
AkReal32 fDiffractionShadowDegrees
AkReal32 obstructionValue
AKSOUNDENGINE_API AKRESULT RemoveGeometry(AkGeometrySetID in_SetID)
AkUniqueID arTextureID[AK_MAX_NUM_TEXTURE]
Unique IDs of the Acoustics Texture ShareSets used to filter this image source.
AKSOUNDENGINE_API AKRESULT SetRoom(AkRoomID in_RoomID, const AkRoomParams &in_Params)
Parameters passed to SetRoom.
#define AK_MAX_SOUND_PROPAGATION_DEPTH
bool bEnableDirectPathDiffraction
Parameters passed to SetGeometry.
AkVertIdx point1
Index into the vertex table passed into AkGeometryParams that describes the second vertex of the tria...
AKSOUNDENGINE_API AKRESULT RegisterListener(AkGameObjectID in_gameObjectID)
AKSOUNDENGINE_API AKRESULT SetNumberOfPrimaryRays(AkUInt32 in_uNbPrimaryRays)
#define AK_DEFAULT_MOVEMENT_THRESHOLD
Besoin d'aide ?
Des questions ? Des problèmes ? Besoin de plus d'informations ? Contactez-nous, nous pouvons vous aider !
Visitez notre page d'Aide
Décrivez-nous de votre projet. Nous sommes là pour vous aider.
Enregistrez votre projet et nous vous aiderons à démarrer sans aucune obligation !
Partir du bon pied avec Wwise