22 #include <unordered_map>
28 class DtBallisticComputeComponent;
55 boost::signalslib::signal<void(const std::vector<DtBallisticSoundTrigger>&)> signal_soundTriggers;
69 virtual void setSoundQueryEnabled(
bool enabled);
73 virtual void setSoundQueryRadius(
float radius);
81 virtual void setSoundQueryMaxResults(
int n);
84 virtual bool soundQueryEnabled()
const;
87 virtual float soundQueryRadius()
const;
90 virtual int soundQueryMaxResults()
const;
100 virtual void notifyBulletSpawned(uint32_t bulletSlot, uint64_t burstId);
106 virtual void notifyBulletRetired(uint32_t bulletSlot);
117 virtual void notifyBurstFired(uint64_t burstId,
const Vector3_64& muzzleWorldPos);
125 virtual void notifyBurstRetired(uint64_t burstId);
139 virtual int32_t resolveGroupIndex(
const std::string& groupName)
const;
std::map< uint32_t, DtBallisticSoundTrigger > myPendingRangeTriggers
Per-bullet last-known raw result for bullets currently approaching within range.
Definition: DtBallisticSoundProxy.h:160
SoundIndexResolver mySoundIndexResolver
Callable registered by vrvAudio to map group names to GPU indices.
Definition: DtBallisticSoundProxy.h:143
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
Plain data struct for cross-thread transfer of a ballistic flyby sound trigger.Written by the render ...
std::set< uint32_t > myFiredWithinZoneIds
Bullet IDs that have already fired a within-zone trigger (myCpaT == -1 sentinel). Prevents re-trigger...
Definition: DtBallisticSoundProxy.h:166
std::unordered_map< uint64_t, Vector3_64 > myBurstIdToMuzzlePos
Maps burst-record ID to the world-space muzzle position at fire time.
Definition: DtBallisticSoundProxy.h:184
Pure data and signal container that decouples DtOsgBallisticManager from the audio subsystem...
Definition: DtBallisticSoundProxy.h:41
float mySoundQueryRadius
Detection radius in meters for the proximity sound query.
Definition: DtBallisticSoundProxy.h:149
Interface for GPU compute operations driving the ballistic simulation pipeline.
Definition: DtBallisticComputeComponent.h:71
int mySoundQueryMaxResults
Maximum number of query results per frame.
Definition: DtBallisticSoundProxy.h:152
std::set< uint32_t > myFiredFlybySoundIds
Bullet IDs that have already fired a flyby trigger (myCpaT in (0, 1]). Prevents duplicate triggers wh...
Definition: DtBallisticSoundProxy.h:172
Contains DLL export macros.
bool mySoundQueryEnabled
True when the proximity sound query is active.
Definition: DtBallisticSoundProxy.h:146
std::unordered_map< uint32_t, uint64_t > mySlotToFireRequestId
Maps GPU StateBuffer slot index to the burst-record ID of the spawning burst.
Definition: DtBallisticSoundProxy.h:178
std::function< int32_t(const std::string &)> SoundIndexResolver
Callable that maps a sound group name to a stable 0-based GPU index.
Definition: DtBallisticSoundProxy.h:49