summaryrefslogtreecommitdiff
path: root/indra/newview/llvoicevivox.h
diff options
context:
space:
mode:
authorAimee Linden <aimee@lindenlab.com>2010-05-18 14:12:54 +0100
committerAimee Linden <aimee@lindenlab.com>2010-05-18 14:12:54 +0100
commit75f6e32f8836b008485ff65a17c2393696aa8fee (patch)
treeaa06c5dbf91df02c8a158e569efe004c8b59f7c5 /indra/newview/llvoicevivox.h
parent110995427fecaf59b4e7885893243a3bb07000db (diff)
EXT-7337 WIP Added capture buffer for previewing voice fonts to the voice client.
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;
};
/**