3 ms·
The devices are used as game clients, not game servers. Streaming audio sounds like an interesting idea, so instead of the server sending an event and the clie
by XCSme 6y ago
The devices are used as game clients, not game servers.
Streaming audio sounds like an interesting idea, so instead of the server sending an event and the client playing a sound when that event is received, the client would constantly stream a dynamically created audio file. This solution could work, feels a bit complex as you would still have to make sure stream catches up if user has a lag spike, instead of buffering the audio (timing should still be accurate).
That being said, what it the game is single-player and there is no server? Then the client itself would have to generate the audio stream and stream it to itself, which wouldn't work if the background thread is throttled.