I have added voip to my game which works perfectly for broadcasting speech over network using the audio data from an input device. I want to add support for streaming audio from files but the problem I'm having is deciding how often I should be reading parts from the file to send over network. When streaming and playing audio locally this problem is easy to solve because I can just queue a buffer when there's a slot available, this isn't an option here because I'm not playing back the audio I'm sending.
The only solution I see is to send packets in timed intervals but I see that being unreliable. What do you guys think?
A ghetto way would be to actually play the stream locally but with zero volume, that doesn't seem too bad.
Edited by laylay, 23 May 2013 - 09:40 PM.