Community Forums Today's Posts     Member List     Archive    
Results 1 to 3 of 3
  1. #1
    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"

  2. #2
    Join Date
    Jan 2010
    Location
    Germany
    Posts
    2,038
    Might need to do flushChannelUpdates as well?

  3. #3
    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

  1. How can I stop the Echo effect?
    By Waynos in forum General Questions
    Replies: 0
    Last Post: 27-08-2011, 13:18
  2. [Resolved] NPL having NO effect on my TS Max Slots
    By KokoRyu in forum Windows
    Replies: 3
    Last Post: 21-03-2011, 21:55
  3. Radio effect
    By Teecee in forum Client Support
    Replies: 3
    Last Post: 22-09-2010, 13:20
  4. Wow! Cool Sound Effect ... No.
    By willy_sunny in forum General Questions
    Replies: 2
    Last Post: 14-01-2010, 19:18

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •