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?
- Viewing Profile: Posts: laylay
Community Stats
- Group Members
- Active Posts 18
- Profile Views 734
- Member Title Member
- Age Age Unknown
- Birthday Birthday Unknown
-
Gender
Not Telling
User Tools
Contacts
laylay hasn't added any contacts yet.
Latest Visitors
No latest visitors to show
Posts I've Made
In Topic: Sound (Voice) over Network
05 January 2013 - 04:29 PM
In Topic: Sound (Voice) over Network
05 January 2013 - 09:52 AM
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!
- Home
- » Viewing Profile: Posts: laylay

Find content