RavEngine
Loading...
Searching...
No Matches
RavEngine::GeometryAudioSpace::RoomData Struct Reference
Inheritance diagram for RavEngine::GeometryAudioSpace::RoomData:
[legend]
Collaboration diagram for RavEngine::GeometryAudioSpace::RoomData:
[legend]

Public Member Functions

void ConsiderAudioSource (const vector3 &sourcePos, entity_t owningEntity, const vector3 &roomPos, const matrix4 &invRoomTransform)
 
void CalculateRoom (const matrix4 &invRoomTransform, const vector3 &listenerForwardWorldSpace, const vector3 &listenerUpWorldSpace, const vector3 &listenerRightWorldSpace)
 
void ConsiderMesh (Ref< AudioMeshAsset > mesh, const matrix4 &transform, const vector3 &roomPos, const matrix4 &invRoomTransform, entity_t ownerID)
 
void RenderAudioSource (PlanarSampleBufferInlineView &outBuffer, PlanarSampleBufferInlineView &scratchBuffer, entity_t sourceOwningEntity, PlanarSampleBufferInlineView monoSourceData, const matrix4 &invListenerTransform)
 
void DeleteAudioDataForEntity (entity_id_t entity)
 
void DeleteMeshDataForEntity (entity_id_t entity)
 
- Public Member Functions inherited from RavEngine::AudioGraphComposed
void SetGraph (decltype(effectGraph) inGraph)
 
auto GetGraph () const
 
void Render (PlanarSampleBufferInlineView &inputSamples, PlanarSampleBufferInlineView &intermediateBuffer, uint8_t nchannels)
 

Friends

class RavEngine::AudioPlayer
 
class GeometryAudioSpace
 
class AudioSnapshot
 

Additional Inherited Members

- Public Types inherited from RavEngine::AudioGraphComposed
using effect_graph_ptr_t = Ref< AudioGraphAsset >
 

Member Function Documentation

◆ CalculateRoom()

void RavEngine::GeometryAudioSpace::RoomData::CalculateRoom ( const matrix4 &  invRoomTransform,
const vector3 &  listenerForwardWorldSpace,
const vector3 &  listenerUpWorldSpace,
const vector3 &  listenerRightWorldSpace 
)

Compute the Effect parameters for this room

Parameters
invRoomTranformthe inverse of the room's world-space transformation matrix
listenerForwardWorldSpacethe forward vector for the listener in world space
listenerUpWorldSpacethe up vector for the listener in world space
listenerRightWorldSpacethe right vector for the listener in world space

◆ ConsiderAudioSource()

void RavEngine::GeometryAudioSpace::RoomData::ConsiderAudioSource ( const vector3 &  sourcePos,
entity_t  owningEntity,
const vector3 &  roomPos,
const matrix4 &  invRoomTransform 
)

Present an audio source to the room. Depending on its position, it may or may not be added or removed from the room

Parameters
sourcePosthe world-space position of the audio source
owningEntitythe world-local entity ID of the source
roomPosthe world-space position of the audio space
invRoomTransformthe inverse of the room's world-space transformation matrix

◆ ConsiderMesh()

void RavEngine::GeometryAudioSpace::RoomData::ConsiderMesh ( Ref< AudioMeshAsset >  mesh,
const matrix4 &  transform,
const vector3 &  roomPos,
const matrix4 &  invRoomTransform,
entity_t  ownerID 
)

Present a mesh occluder to the room. Depending on its position, it may or may not be added or removed from the room

Parameters
meshthe asset representing the mesh
transformthe world-space transform of the mesh
roomPosthe world-space position of the room
invRoomTransformthe inverse of the world-space transformation matrix for the room
ownerIDthe world-local owner ID for the mesh

The documentation for this struct was generated from the following files: