Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

laylay

Member Since 15 Sep 2012
Offline Last Active May 15 2013 09:54 PM
-----

Posts I've Made

In Topic: Sound (Voice) over Network

05 January 2013 - 04:29 PM

Thanks, I'll give it a try. You say to drop the packet if it's not the in correct order, why not just swap them around?


In Topic: Sound (Voice) over Network

05 January 2013 - 09:52 AM

So I got my encoded voice sending across UDP and seems to play smoothly (on localhost) Now I need to know what I need to do to have it play nicely when connected to other servers.

So from what you've all told me there's 2 main things I need to solve. Packet reordering and packet loss.

Let's start with packet reordering. I imagine I'd have to wait for a certain amount of packets to come in before I can put them in order and play them. How many packets should I be waiting for before i sort them though? 5, 6, 7, 10? If I'm waiting too long then there's going to be a lot of latency.

Any other problems I'll have to solve? I want this to be on par with something like the voice chat in Source Engine games.

In Topic: Sound (Voice) over Network

31 December 2012 - 07:27 PM

Well I've got OpenAL setup so I can just play it through that without a problem.

 

I think tomorrow I'm going to atleast get the encoded audio sent to server and across to clients, having clients decode what they get sent. From there I'll have a much better idea of what needs fixing. I'll be missing packets and have packets in the wrong order but I should be able to atleast hear something through my speakers.

 

I'll be testing on localhost anyway so It will probably be audible :)


In Topic: Sound (Voice) over Network

31 December 2012 - 05:13 PM

I think this is kinda something I want to do myself or just not have it at all. I've written the game from scratch so far, I may aswell have just used unity or something otherwise.

 

Despite all the problems, I think this is something I can pull off. I may use Speex over Opus if there's better examples and docs. I think Opus is made by the same people though.


In Topic: Sound (Voice) over Network

31 December 2012 - 02:05 PM

Thanks. I think I know enough to go ahead and start on this. Should have good in-game voice chat by the end of it!


PARTNERS