Hi,

I'm trying to integrate Teamspeak SDK into my own application. I'm using Unity3d with C#. I'm currently wrapping the example code that came with the SDK.

When I try to initialize the playback and capture devices using the following code (same code as in the C# example):

Code:
ts3client_openPlaybackDevice(mServerConnectionHandlerID, "", null);
ts3client_openCaptureDevice(mServerConnectionHandlerID, "", null);
an error gets thrown:

Code:
device not registered/known
Since I failed to find out what went wrong I tried to query the default playback/capture devices by using

Code:
IntPtr modeIdPtr = IntPtr.Zero;
uint error = teamspeak_client.ts3client_getDefaultPlayBackMode( out modeIdPtr);
			
if ( error != public_errors.ERROR_ok)
    Debug.LogError( "Failed to get default playback mode: " +getErrorMessage( error));
else
{
    modeId = Marshal.PtrToStringAnsi( modeIdPtr);
    teamspeak_client.ts3client_freeMemory( modeIdPtr);
}

IntPtr playbackPtr = IntPtr.Zero;
error = teamspeak_client.ts3client_getDefaultPlayBackDevice( modeId, out playbackPtr);

if ( error != public_errors.ERROR_ok)
    Debug.LogError( "Failed to get default playback device: " +getErrorMessage( error));
else
{
    playbackDevice = Marshal.PtrToStringAnsi( playbackPtr);
    teamspeak_client.ts3client_freeMemory( playbackPtr);
}
the following errors are thrown:

Code:
EntryPointNotFoundException: ts3client_getDefaultPlayBackMode
EntryPointNotFoundException: ts3client_getDefaultCaptureMode
I'm pretty sure that I'm importing the dll correctly. This is how my dll import looks like

Code:
[DllImport("directsound_win32.dll", EntryPoint = "ts3client_getDefaultPlayBackMode")]
public static extern uint ts3client_getDefaultPlayBackMode(out IntPtr result);
Any ideas why these errors occur? I didn't manage to find a solution so far...

Thanks in advance!

KayJ