summaryrefslogtreecommitdiff
path: root/indra/newview/llvoicevivox.h
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llvoicevivox.h')
-rw-r--r--indra/newview/llvoicevivox.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/indra/newview/llvoicevivox.h b/indra/newview/llvoicevivox.h
index 39db87b6bd..6c302962a3 100644
--- a/indra/newview/llvoicevivox.h
+++ b/indra/newview/llvoicevivox.h
@@ -253,6 +253,18 @@ public:
virtual void removeObserver(LLVoiceEffectObserver* observer);
//@}
+ //////////////////////////////
+ /// @name Effect preview buffer
+ //@{
+ virtual void recordPreviewBuffer(bool enable);
+ virtual void playPreviewBuffer(bool enable, const LLUUID& effect_id = LLUUID::null);
+ virtual void clearPreviewBuffer();
+
+ virtual bool isPreviewRecording();
+ virtual bool isPreviewReady();
+ virtual bool isPreviewPlaying();
+ //@}
+
//@}
@@ -373,6 +385,11 @@ protected:
stateMicTuningStart,
stateMicTuningRunning,
stateMicTuningStop,
+ stateCaptureBufferPaused,
+ stateCaptureBufferRecStart,
+ stateCaptureBufferRecording,
+ stateCaptureBufferPlayStart,
+ stateCaptureBufferPlaying,
stateConnectorStart, // connector needs to be started
stateConnectorStarting, // waiting for connector handle
stateConnectorStarted, // connector handle received
@@ -891,6 +908,19 @@ private:
typedef std::set<LLVoiceEffectObserver*> voice_font_observer_set_t;
voice_font_observer_set_t mVoiceFontObservers;
+
+ // Audio capture buffer
+
+ void captureBufferRecordStartSendMessage();
+ void captureBufferRecordStopSendMessage();
+ void captureBufferPlayStartSendMessage(const LLUUID& voice_font_id = LLUUID::null);
+ void captureBufferPlayStopSendMessage();
+
+ bool mCaptureBufferRecording;
+ bool mCaptureBufferPlaying;
+ bool mCaptureBufferClear;
+
+ LLUUID mPreviewVoiceFontID;
};
/**