diff options
author | Rider Linden <rider@lindenlab.com> | 2015-12-09 16:33:51 -0800 |
---|---|---|
committer | Rider Linden <rider@lindenlab.com> | 2015-12-09 16:33:51 -0800 |
commit | 7e58b0793b021922e68e10f111d624bb7638fefa (patch) | |
tree | 82ae16d24920f1684b9d477ed351fe2f876c6ab7 /indra/newview/llvoicevivox.h | |
parent | aa67a2fba05a703364e91d034d4b9a2f5d2f26e2 (diff) |
Voice session state now in coro (includes all sub states as part of the coro)
Diffstat (limited to 'indra/newview/llvoicevivox.h')
-rwxr-xr-x | indra/newview/llvoicevivox.h | 15 |
1 files changed, 11 insertions, 4 deletions
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); |