From 7e58b0793b021922e68e10f111d624bb7638fefa Mon Sep 17 00:00:00 2001 From: Rider Linden Date: Wed, 9 Dec 2015 16:33:51 -0800 Subject: Voice session state now in coro (includes all sub states as part of the coro) --- indra/newview/llvoicevivox.h | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'indra/newview/llvoicevivox.h') diff --git a/indra/newview/llvoicevivox.h b/indra/newview/llvoicevivox.h index dd9fcd4344..a4d6f38157 100755 --- a/indra/newview/llvoicevivox.h +++ b/indra/newview/llvoicevivox.h @@ -138,7 +138,7 @@ public: virtual void setNonSpatialChannel(const std::string &uri, const std::string &credentials); - virtual void setSpatialChannel(const std::string &uri, + virtual bool setSpatialChannel(const std::string &uri, const std::string &credentials); virtual void leaveNonSpatialChannel(); @@ -640,7 +640,7 @@ protected: private: // void voiceAccountProvisionCoro(std::string url, S32 retries); - void parcelVoiceInfoRequestCoro(std::string url); +// void parcelVoiceInfoRequestCoro(std::string url); LLVoiceVersionInfo mVoiceVersion; @@ -653,7 +653,12 @@ private: bool loginToVivox(); bool retrieveVoiceFonts(); + bool requestParcelVoiceInfo(state exitState); + bool addAndJoinSession(sessionState *nextSession); + bool terminateAudioSession(bool wait); + + bool runSession(sessionState *session); void recordingAndPlaybackMode(); int voiceRecordBuffer(); @@ -755,9 +760,11 @@ private: bool checkParcelChanged(bool update = false); // This should be called when the code detects we have changed parcels. // It initiates the call to the server that gets the parcel channel. +#if 0 bool requestParcelVoiceInfo(); - - void switchChannel(std::string uri = std::string(), bool spatial = true, bool no_reconnect = false, bool is_p2p = false, std::string hash = ""); +#endif + + bool switchChannel(std::string uri = std::string(), bool spatial = true, bool no_reconnect = false, bool is_p2p = false, std::string hash = ""); void joinSession(sessionState *session); std::string nameFromAvatar(LLVOAvatar *avatar); -- cgit v1.2.3