VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtProceduralSoundLayerPlayer.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 <vrvAudioQt/dllExport.h>
14 
15 #include <QtCore/QObject>
16 
17 class QTimer;
18 
19 namespace makVrv
20 {
21  class DtDe;
22  class DtProceduralSound;
23 
36  {
37  Q_OBJECT
38 
39  public:
43  explicit DtProceduralSoundLayerPlayer(DtDe& de, QObject* parent = nullptr);
44 
47 
52  void startPreview(const DtProceduralLayerConfig& layer);
53 
55  void stopPreview();
56 
61  void refreshLiveParameters(const DtProceduralLayerConfig& layer);
62 
64  bool isPlaying() const;
65 
66  signals:
69  void signal_playbackStateChanged(bool playing);
70 
71  private slots:
73  void slot_onTick();
74 
75  private:
77 
80 
82  QTimer* myTickTimer;
83  };
84 
85 } // namespace makVrv
#define DT_DLL_VRVAUDIOQT
Definition: dllExport.h:22
Composes multiple DtProceduralSoundLayer pools into one streaming ambient sound.
Definition: DtProceduralSound.h:61
Contains makVrv::DtProceduralClipConfig, DtProceduralLayerConfig, and DtProceduralSoundConfig structs...
DtProceduralLayerConfig myCurrentLayer
Copy of the currently-playing layer configuration.
Definition: DtProceduralSoundLayerPlayer.h:79
Configuration for one layer within a DtProceduralSoundConfig.
Definition: DtProceduralSoundConfig.h:60
QTimer * myTickTimer
Drives slot_onTick() at ~30 Hz.
Definition: DtProceduralSoundLayerPlayer.h:82
DtDe & myDe
Display engine reference (borrowed).
Definition: DtProceduralSoundLayerPlayer.h:76
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
Owns a single one-layer procedural-sound audition on behalf of DtProceduralSoundsSettingsWidget.
Definition: DtProceduralSoundLayerPlayer.h:35
DtProceduralSound * myPreviewSound
nullptr when not playing.
Definition: DtProceduralSoundLayerPlayer.h:81

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)