From: NeilBrown Date: Thu, 17 Jan 2013 22:00:14 +0000 (+1100) Subject: Maybe improve sync of the different streams X-Git-Url: http://git.neil.brown.name/?a=commitdiff_plain;h=refs%2Fheads%2Fmaster;p=gta04-gsm-voice-routing.git Maybe improve sync of the different streams I wrote this 9 months ago and don't remember exactly why :-( Signed-off-by: NeilBrown --- diff --git a/gsm-voice-routing.c b/gsm-voice-routing.c index 55b7a5d..5cbacd5 100644 --- a/gsm-voice-routing.c +++ b/gsm-voice-routing.c @@ -596,6 +596,11 @@ int main() open_route_stream_repeated(&p0); open_route_stream_repeated(&r0); + while (route_stream_read(&r1)) + ; + snd_pcm_start(r0.handle); + snd_pcm_start(r1.handle); + /* Route sound */ while (!terminating) {