VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtProceduralSoundFactory.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2026 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvAudio/vrvAudio.h>
14 
16 
17 #include <vrvCore/DtUniqueID.h>
18 
19 #include <map>
20 #include <string>
21 
22 namespace makVrv
23 {
24  class DtProceduralSound;
25  class DtDe;
26 
37  {
38  public:
39  using CreatorMap = std::map<std::string, DtProceduralSoundCreator*>;
40 
42  static DtProceduralSoundFactory& instance(DtDe& de);
43 
44  virtual ~DtProceduralSoundFactory();
45 
48  virtual void addSoundCreator(const std::string& key,
49  DtProceduralSoundCreator* creator);
50 
55  virtual DtProceduralSound* createSound(const std::string& key);
56 
58  virtual const CreatorMap& creators() const;
59 
60  protected:
61  explicit DtProceduralSoundFactory(DtDe& de);
62 
69  virtual DtUniqueID generateSoundId();
70 
73  };
74 
75 } // namespace makVrv
std::map< std::string, DtProceduralSoundCreator * > CreatorMap
Definition: DtProceduralSoundFactory.h:39
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
Abstract factory interface for creating a named DtProceduralSound.
Definition: DtProceduralSoundCreator.h:53
Per-DtDe singleton factory for procedural sounds.
Definition: DtProceduralSoundFactory.h:36
Contains the DLL export macro for vrvAudio classes.
Composes multiple DtProceduralSoundLayer pools into one streaming ambient sound.
Definition: DtProceduralSound.h:61
Contains makVrv::DtVirtualBaseClass class.
DtDe & myDe
Definition: DtProceduralSoundFactory.h:71
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
CreatorMap myCreators
Definition: DtProceduralSoundFactory.h:72
Contains makVrv::DtUniqueID type.
#define DT_DLL_VRVAUDIO
Definition: vrvAudio.h:20
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76
Contains makVrv::DtProceduralSoundCreator abstract base class.

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)