GLBasic forum

Main forum => GLBasic - en => Topic started by: gadido30 on 2013-Jun-15

Title: Voice chat and text chat
Post by: gadido30 on 2013-Jun-15
Hi All,

I will try to ask different question,

Lets say I want to write Multi Player game Cross Platform (Windows,Linux,MAC,Android,IPHONE),

I want to use text chat and voice chat cross platform , so users inside the game can talk each other,

Any idea if its possible in GLBasic?

Thank You
Gadi

Title: Re: Voice chat and text chat
Post by: mentalthink on 2013-Jun-15
I'm not sure  but this it's C and have a lot of platforms and free(I don't read completly perhaps after have to pay something)...
http://www.linphone.org/eng/documentation/dev/liblinphone-free-sip-voip-sdk.html
Title: Re: Voice chat and text chat
Post by: kanonet on 2013-Jun-15
Text chat is absolutely no problem with GLB, but native GLB does not have voice chat. Since you can extend GLB with C++ you may find a way to add this, but it would mean work.
Title: Re: Voice chat and text chat
Post by: MrTAToad on 2013-Jun-15
That would be an interesting thing to add...
Title: Re: Voice chat and text chat
Post by: gadido30 on 2013-Jun-15
Thank You,

Is there simple example for cross platform text chat?

I can't use SIP bcz it needed UDP ports, I will prefer xmpp voice or other voice chat protocol based on tcp.

Thank You
Gadi
Title: Re: Voice chat and text chat
Post by: kanonet on 2013-Jun-15
In GLB you have NET_ and SOCK_ commands for networking, both send strings. It just makes no difference if you send game data (like positions of the player or enemies) or your text chat. When you learn how to program a network game you will automatically learn how to text chat.
Net_ commands are easier, but i prefer SOCK_ commands since they are more powerful and even can get used to communicate with programs from other programming language (they offer normal Berkeley standard sockets).

Networking tutorials can be found in the forum.
Title: Re: Voice chat and text chat
Post by: gadido30 on 2013-Jun-16
Thank You