aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llvoiceclient.h
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llvoiceclient.h')
-rw-r--r--linden/indra/newview/llvoiceclient.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/linden/indra/newview/llvoiceclient.h b/linden/indra/newview/llvoiceclient.h
index 8d2c2ac..2220d59 100644
--- a/linden/indra/newview/llvoiceclient.h
+++ b/linden/indra/newview/llvoiceclient.h
@@ -72,7 +72,7 @@ public:
72 virtual ~LLVoiceClientStatusObserver() { } 72 virtual ~LLVoiceClientStatusObserver() { }
73 virtual void onChange(EStatusType status, const std::string &channelURI, bool proximal) = 0; 73 virtual void onChange(EStatusType status, const std::string &channelURI, bool proximal) = 0;
74 74
75 static const char *status2string(EStatusType inStatus); 75 static std::string status2string(EStatusType inStatus);
76}; 76};
77 77
78class LLVoiceClient: public LLSingleton<LLVoiceClient> 78class LLVoiceClient: public LLSingleton<LLVoiceClient>
@@ -99,7 +99,9 @@ class LLVoiceClient: public LLSingleton<LLVoiceClient>
99 serviceTypeC // one-to-one and small group chat 99 serviceTypeC // one-to-one and small group chat
100 }; 100 };
101 static F32 OVERDRIVEN_POWER_LEVEL; 101 static F32 OVERDRIVEN_POWER_LEVEL;
102 102
103 void updateSettings(); // call after loading settings and whenever they change
104
103 ///////////////////////////// 105 /////////////////////////////
104 // session control messages 106 // session control messages
105 void connect(); 107 void connect();
@@ -188,6 +190,7 @@ class LLVoiceClient: public LLSingleton<LLVoiceClient>
188 190
189 ///////////////////////////// 191 /////////////////////////////
190 // Sending updates of current state 192 // Sending updates of current state
193static void updatePosition(void);
191 void setCameraPosition(const LLVector3d &position, const LLVector3 &velocity, const LLMatrix3 &rot); 194 void setCameraPosition(const LLVector3d &position, const LLVector3 &velocity, const LLMatrix3 &rot);
192 void setAvatarPosition(const LLVector3d &position, const LLVector3 &velocity, const LLMatrix3 &rot); 195 void setAvatarPosition(const LLVector3d &position, const LLVector3 &velocity, const LLMatrix3 &rot);
193 bool channelFromRegion(LLViewerRegion *region, std::string &name); 196 bool channelFromRegion(LLViewerRegion *region, std::string &name);
@@ -225,7 +228,7 @@ class LLVoiceClient: public LLSingleton<LLVoiceClient>
225 BOOL getPTTPressed(const LLUUID& id); // This is the inverse of the "locally muted" property. 228 BOOL getPTTPressed(const LLUUID& id); // This is the inverse of the "locally muted" property.
226 BOOL getOnMuteList(const LLUUID& id); 229 BOOL getOnMuteList(const LLUUID& id);
227 F32 getUserVolume(const LLUUID& id); 230 F32 getUserVolume(const LLUUID& id);
228 LLString getDisplayName(const LLUUID& id); 231 std::string getDisplayName(const LLUUID& id);
229 232
230 // MBW -- XXX -- Not sure how to get this data out of the TVC 233 // MBW -- XXX -- Not sure how to get this data out of the TVC
231 BOOL getUsingPTT(const LLUUID& id); 234 BOOL getUsingPTT(const LLUUID& id);
@@ -272,7 +275,7 @@ class LLVoiceClient: public LLSingleton<LLVoiceClient>
272 void addStatusObserver(LLVoiceClientStatusObserver* observer); 275 void addStatusObserver(LLVoiceClientStatusObserver* observer);
273 void removeStatusObserver(LLVoiceClientStatusObserver* observer); 276 void removeStatusObserver(LLVoiceClientStatusObserver* observer);
274 277
275 static void onAvatarNameLookup(const LLUUID& id, const char* first, const char* last, BOOL is_group, void* user_data); 278// static void onAvatarNameLookup(const LLUUID& id, const std::string& first, const std::string& last, BOOL is_group, void* user_data);
276 typedef std::vector<std::string> deviceList; 279 typedef std::vector<std::string> deviceList;
277 280
278 deviceList *getCaptureDevices(); 281 deviceList *getCaptureDevices();
@@ -355,7 +358,7 @@ class LLVoiceClient: public LLSingleton<LLVoiceClient>
355 358
356 void setState(state inState); 359 void setState(state inState);
357 state getState(void) { return mState; }; 360 state getState(void) { return mState; };
358 static const char *state2string(state inState); 361 static std::string state2string(state inState);
359 362
360 void stateMachine(); 363 void stateMachine();
361 static void idle(void *user_data); 364 static void idle(void *user_data);