Git Product home page Git Product logo

rust-ts3plugin's People

Contributors

flakebi avatar mirclus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

rust-ts3plugin's Issues

Ein paar Fragen

Moin!

Ich komme aus der Java Welt und meine Erfahrungen mit C Sprachen, Rust und ähnliche beglichen sich auf Null^ Nun muss/will ich ein Teamspeak Plugin programmieren.. Mit der offiziellen Teamspeak SDK habe ich in 2 Stunden nichtmal geschafft Deren Beispiel zu kompilieren.. Mit deiner Lib habe ich es nach 2 Minuten geschafft.. Somit steht schonmal fest das Rust meine nächste Sprache wird die ich angucke, Danke ;)

Die Events habe ich soweit schon verstanden.. Jedoch bleibt mir die Frage wie ich Nachrichten wieder zurückschreiben kann? Ich arbeite mit Privaten Chats.. Somit brauche ich lediglich die Funktion schreiben zu können, und Leute poken zu können. Ich habe gerade nicht wirklich viel dafür gefunden, was mir sagt wie ich das richtig implementiere ;)

Im Hintergrund arbeite ich dann noch mit nem HTTP Server und Client.. Das werde ich aber schon selber implementiert kriegen^

Vielen Dank,
Mfg Marcel

PS: Ich denke mal du bist der deutschen Sprache mächtig ;) Das Herkunftsland hat mir das verraten

Voice data events

First of all, this wrapper is pretty handy as I want to use Ruby to code a TS3 bot (much more convenient than C).

I'd like to record what a user says when whispering to the bot and previously implemented that in C using the void ts3plugin_onEditPlaybackVoiceDataEvent(uint64 serverConnectionHandlerID, anyID clientID, short* samples, int sampleCount, int channels) function.

Unfortunately, this isn't available in rust-ts3plugin and I have no idea how to wrap the samples in Rust.
Maybe you have one? :)

Implementation & static mut TS3_FUNCTIONS

Hello,
I'm a bit puzzled by the static mut TS3_FUNCTIONS.
For once there is a static reference to the Ts3Functions and all calls in TsApi are referring to it.
Not one is using any internal reference ( self.api... for example), so the whole struct seems kinda useless. Still you can't call any TS functions from any other thread, as you don't have a reference to this object as a user, though that's not entirely true, you can call the static logger function from any other thread, so it's inconsistent.
So my question is: What exactly is the reason for the const mut and still using some struct which has to be implemented, it feels wrong and makes it impossible to call functions from the outside (not ts event initiated).

errors in console with empty plugin example

Hi, thanks for the lib first of all.

I currently get the this errors all over the place when using the clean plugin example:

10/22/18 22:38:54	rust-ts3plugin	Error	Error NotConnected (Can't get channel information) in in ts3interface.rs:L438	
10/22/18 22:38:54	rust-ts3plugin	Error	Error NotConnected (Can't get channel information) in in ts3interface.rs:L438	
10/22/18 22:38:54	rust-ts3plugin	Error	Error NotConnected (Can't get channel information) in in ts3interface.rs:L438	
10/22/18 22:38:54	rust-ts3plugin	Error	Error NotConnected (Can't get channel information) in in ts3interface.rs:L438	
10/22/18 22:38:54	rust-ts3plugin	Error	Error NotConnected (Can't get channel information) in in ts3interface.rs:L438	
10/22/18 22:38:54	rust-ts3plugin	Error	Error NotConnected (Can't get channel information) in in ts3interface.rs:L438	
10/22/18 22:38:54	rust-ts3plugin	Error	Error NotConnected (Can't get channel information) in in ts3interface.rs:L438	
10/22/18 22:38:54	rust-ts3plugin	Error	Error NotConnected (Can't get channel information) in in ts3interface.rs:L438	
10/22/18 22:38:54	rust-ts3plugin	Error	Error NotConnected (Can't get channel information) in in ts3interface.rs:L438	
10/22/18 22:38:54	rust-ts3plugin	Error	Error NotConnected (Can't get channel information) in in ts3interface.rs:L438	
10/22/18 22:38:54	rust-ts3plugin	Error	Error NotConnected (Can't get channel information) in in ts3interface.rs:L438	
10/22/18 22:38:54	rust-ts3plugin	Error	Error NotConnected (Can't get channel information) in in ts3interface.rs:L438	
10/22/18 22:38:54	rust-ts3plugin	Error	Error NotConnected (Can't get channel information) in in ts3interface.rs:L438	
10/22/18 22:38:54	rust-ts3plugin	Error	Error NotConnected (Can't get channel information) in in ts3interface.rs:L438	
10/22/18 22:38:54	rust-ts3plugin	Error	Error NotConnected (Can't get channel information) in in ts3interface.rs:L438	
10/22/18 22:38:54	rust-ts3plugin	Error	Error NotConnected (Can't get channel information) in in ts3interface.rs:L438	
10/22/18 22:38:54	rust-ts3plugin	Error	Error NotConnected (Can't get channel information) in in ts3interface.rs:L438	
10/22/18 22:38:54	rust-ts3plugin	Error	Error NotConnected (Can't get channel information) in in ts3interface.rs:L438	
10/22/18 22:38:54	rust-ts3plugin	Error	Error NotConnected (Can't get channel information) in in ts3interface.rs:L438	
10/22/18 22:38:54	rust-ts3plugin	Error	Error NotConnected (Can't get channel information) in in ts3interface.rs:L438	
10/22/18 22:38:54	rust-ts3plugin	Error	Error NotConnected (Can't get channel information) in in ts3interface.rs:L438	

image

Any ideas what I'm doing wrong ?

Current master crashes

The commit closing #6 3d6ac43 Crashes teamspeak on a blank plugin with free(): invalid pointer.
I'm assuming the new string free-function is not working as intended. Again, a blank plugin, you don't need to call get_client_property_as_string at all.

(I was just trying to move production to the current master to add more features, which is why it took so long to appear.)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.