Long story short, i am running teamspeak client in xinit, i use dummy audio devices. If i use default audio devices (keeping default) not changing anything, plugin like RP-Soundboard which uses ts3plugin_onEditCapturedVoiceDataEvent works.
But as soon as i use code below, the event just does not trigger. Any solution, hack, configuration in linux to solve this?

Thanks!

Code:
//init
unsigned interrori = ts3Functions.registerCustomDevice("customWaveDeviceId", "DisplayName", 44100, 2, 44100, 2);
if (errori != ERROR_ok)
printf("Failed to register custom device: %u\n", errori);
else
printf("Custom device created\n");

//onconnect
ts3Functions.closeCaptureDevice(serverConnectionHandlerID);
ts3Functions.closePlaybackDevice(serverConnectionHandlerID);
if ((error = ts3Functions.openCaptureDevice(serverConnectionHandlerID, "custom", "customWaveDeviceId")) != ERROR_ok) 
printf("%u Error opening capture device\n", error);

if ((error = ts3Functions.openPlaybackDevice(serverConnectionHandlerID, "ALSA", "ts3.alsa.dummy.playbackdefault")) != ERROR_ok) 
printf("%u Error opening playback device\n", error);