VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtProceduralSoundscapesSettingsManager.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 #include <vrvUtil/signalslib.h>
17 
18 #include <vector>
19 #include <string>
20 
21 namespace makVrv
22 {
23  class DtDe;
24  struct DtProceduralSoundscapeChannel;
25 
35  : public DtBaseSettingsManager<DtProceduralSoundscapesSettingsRecord>
36  {
37  public:
39  static DtProceduralSoundscapesSettingsManager& instance(DtDe& de);
40 
42  static void registerInstance(DtDe& de, DtProceduralSoundscapesSettingsManager* mgr);
43 
45  static const std::string& theClassName();
46 
49 
50  // -----------------------------------------------------------------------
53 
57  virtual void setChannels(const std::vector<DtProceduralSoundscapeChannel>& channels);
58 
60  virtual void addChannel(const DtProceduralSoundscapeChannel& channel);
61 
63  virtual void removeChannel(const std::string& name);
64 
66  virtual const std::vector<DtProceduralSoundscapeChannel>& channels() const;
67 
71  virtual void pushSoundscapesToRuntime();
72 
74  // -----------------------------------------------------------------------
75 
77  boost::signalslib::signal<void (const std::vector<DtProceduralSoundscapeChannel>&)>
78  signal_channelsChanged;
79 
80  // -----------------------------------------------------------------------
83 
89  virtual void setFromRecord(const DtProceduralSoundscapesSettingsRecord& rec);
90 
94  virtual void getRecord(DtProceduralSoundscapesSettingsRecord& rec) const;
95 
97  // -----------------------------------------------------------------------
98 
99  protected:
102 
108  virtual void slot_postInitialize();
109 
110  virtual bool applyFactoryOverrides(DtProceduralSoundscapesSettingsRecord& rec) const;
111 
112  protected:
113  std::vector<DtProceduralSoundscapeChannel> myChannels;
114  };
115 
116 } // namespace makVrv
Base class for (non-shared) settings managers. Extends the functionality provided by the DtCommonBase...
Definition: DtBaseSettingsManager.h:283
std::vector< DtProceduralSoundscapeChannel > myChannels
Definition: DtProceduralSoundscapesSettingsManager.h:113
void slot_postInitialize(makVrv::DtDe &de)
Persistence record for the collection of ambient sound channels.
Definition: DtProceduralSoundscapesSettingsRecord.h:117
Contains the DLL export macro for vrvAudio classes.
Manages persistence of the ambient sound channel list.
Definition: DtProceduralSoundscapesSettingsManager.h:34
Configuration for one ambient sound channel.
Definition: DtProceduralSoundscapeChannel.h:114
#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 the declaration for makVrv::DtProceduralSoundscapesSettingsRecord.
Contains the DtBaseSettingsManager class declaration.

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)