diff --git a/lib_xua/src/core/audiohub/xua_audiohub.xc b/lib_xua/src/core/audiohub/xua_audiohub.xc index ea794a8d..87475afa 100755 --- a/lib_xua/src/core/audiohub/xua_audiohub.xc +++ b/lib_xua/src/core/audiohub/xua_audiohub.xc @@ -904,6 +904,8 @@ unsigned static deliver_slave(chanend ?c_out, chanend ?c_spd_out return command; } + InitPorts_slave(divide); + /* Main Audio I/O loop */ while (1) { @@ -913,7 +915,14 @@ unsigned static deliver_slave(chanend ?c_out, chanend ?c_spd_out int syncError = 0; unsigned lrval; - InitPorts_slave(divide); + if (!firstIteration) + { + InitPorts_slave(divide); + } + else + { + firstIteration = 0; + } while (!syncError) {