![]() |
VR-Forces Developer's Guide
|
Abstract factory interface for creating a named DtProceduralSound.
Toolkit plugin developers subclass DtProceduralSoundCreator and register an instance with DtProceduralSoundFactory to make a new procedural sound available under a key string.
Example:

Public Member Functions | |
| virtual | ~DtProceduralSoundCreator ()=default |
| virtual DtProceduralSound * | create (DtDe &de, DtUniqueID id)=0 |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| virtual | ~DtVirtualBaseClass () |
|
virtualdefault |
|
pure virtual |
Construct and configure a new DtProceduralSound.
The caller (DtProceduralSoundFactory) takes ownership of the returned pointer. Implementations should add layers, clips, and density/gain/pitch parameters here and return the configured object. The sound must NOT be started (play() must not be called) - the DtProceduralSoundPlayer owns playback lifetime.
| de | The display engine context; use for path resolution and any VRV service lookups. |
| id | A unique ID for the underlying DtSound; generated by the factory from an atomic counter, same pattern as ambient sounds. |
Implemented in makVrv::DtForestSoundCreator.