Results 1 to 3 of 3
-
19-06-2012, 14:53 #1
-= TeamSpeak User =-
- Join Date
- Jan 2012
- Posts
- 6
CHANNEL_CODEC and others have no effect
I can't get the ts3server_setChannelVariableAsInt with CHANNEL_CODEC, CHANNEL_CODEC_LATENCY_FACTOR and CHANNEL_CODEC_QUALITY to have any effect.
Example when creating a channel:
error = ts3server_setChannelVariableAsString(m_nServerId, 0, CHANNEL_NAME, szName);
if(error) return error;
error = ts3server_setChannelVariableAsInt(m_nServerId, 0, CHANNEL_CODEC, m_nCodec); //values 0-2
if(error) return error;
error = ts3server_setChannelVariableAsInt(m_nServerId, 0, CHANNEL_CODEC_QUALITY, m_nCodecQuality); //values 0-10
if(error) return error;
error = ts3server_setChannelVariableAsInt(m_nServerId, 0, CHANNEL_CODEC_LATENCY_FACTOR, m_nCodecLatency); //values 1-10
if(error) return error;
uint64 chId;
// Flush changes to server
error = ts3server_flushChannelCreation(m_nServerId, 0, &chId);
if(error) return error;
No errors are returned and the name is set correctly.
The callback: onVoiceDataEvent(serverID, clientID, voiceData, voiceDataSize, frequency) in the server still gives frequency 32000 and ts3client_getEncodeConfigValue(m_scDefault, "name", &name) gives ~ "Speex 32 kHz"
-
19-06-2012, 17:32 #2
-= TeamSpeak Fanatic =-
- Join Date
- Jan 2010
- Location
- Germany
- Posts
- 2,038
Might need to do flushChannelUpdates as well?
-
20-06-2012, 16:19 #3
-= TeamSpeak User =-
- Join Date
- Jan 2012
- Posts
- 6
I can't do flushChannelVariable directly after but put the code in onChannelCreated like this:
void onChannelCreated(uint64 serverID, anyID invokerClientID, uint64 channelID)
{
unsigned int error;
error = ts3server_setChannelVariableAsInt(serverID, channelID, CHANNEL_CODEC, 1);
if(error) return;
/*error = ts3server_setChannelVariableAsInt(serverID, channelID, CHANNEL_CODEC_QUALITY, 10);
if(error) return;
error = ts3server_setChannelVariableAsInt(serverID, channelID, CHANNEL_CODEC_LATENCY_FACTOR, 1);
if(error) return;*/
error = ts3server_flushChannelVariable(serverID, channelID);
if(error)
{
return;
}
}
The function reaches the end of the function but still no effect. The codec used is the 32 kHz one.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
How can I stop the Echo effect?
By Waynos in forum General QuestionsReplies: 0Last Post: 27-08-2011, 13:18 -
[Resolved] NPL having NO effect on my TS Max Slots
By KokoRyu in forum WindowsReplies: 3Last Post: 21-03-2011, 21:55 -
Radio effect
By Teecee in forum Client SupportReplies: 3Last Post: 22-09-2010, 13:20 -
Wow! Cool Sound Effect ... No.
By willy_sunny in forum General QuestionsReplies: 2Last Post: 14-01-2010, 19:18


Reply With Quote