Search Unity

Integrate 3D Sound with Teamspeak SDK

Discussion in 'Scripting' started by Lisi, Jul 25, 2014.

  1. Lisi

    Lisi

    Joined:
    Apr 8, 2014
    Posts:
    22
    Hi!
    I am using the SDK in Unity with C#. Normal talking works fine, but the problem is that 3D sound is not working.
    Every player calls each frame:

    Code (CSharp):
    1. ts3client.ts3client_systemset3DListenerAttributes(scHandlerID, ref current_pos, ref current_forward, ref current_up);
    but there is no difference if the player is next to you or far away. Do I have to activate the 3d Sound in the playback device? if so, which mode should I activate? My problem is that the following is not working in C#:

    Code (CSharp):
    1. char*** lol;
    2. error = ts3client_getPlaybackModeList(ref lol);
    So I cannot find out my playback mode. Is there a list anywhere?
    Further I want to ask if I need to set also the positions of the other clients on the current client or if I only have to set the position of the current client and that the other clients get this position from the server?
    Would nice if someone can help me. Thanks a lot.
    Best regards,
    Elisabeth
     
  2. worla

    worla

    Joined:
    Jan 16, 2015
    Posts:
    5
    Hi Lisi, i want to add a voice chat to my application and i wan to Teamspeak SDK, but i don't really know what to do. I have downloaded the Teamspeak SDK. Please i really need you help on this one. It seems you are the only one who have done this successfully. thank you
     
  3. IgorRazin

    IgorRazin

    Joined:
    Oct 11, 2014
    Posts:
    14
    Hi!
    You made it work?