# How to connect two systems

**URL:** <https://qa.fmod.com/t/how-to-connect-two-systems/12091>\
**Category:** FMOD Engine\
**Created:** [October 15, 2015, 6:51pm UTC](https://qa.fmod.com/t/how-to-connect-two-systems/12091 "2015-10-15T18:51:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![maxmayer](https://avatars.discourse-cdn.com/v4/letter/m/96bed5/32.png) [@maxmayer](https://qa.fmod.com/u/maxmayer)\
**Post date:** [October 15, 2015, 6:51pm UTC](https://qa.fmod.com/t/how-to-connect-two-systems/12091/1 "2015-10-15T18:51:33Z")

</div>

I’d like to know what is the best way to “connect” two systems, i.e., to make one system the source of the other:

![enter image description here](https://dl.dropboxusercontent.com/u/15509300/scheme.png)

In other words, I’d like to “play” the same audio source on two systems with different drivers (e.g., speakers + Bluetooth device).

Thanks in advance for any help

[edited to better explain]

---

<div class="post-metadata">

**Author:** ![brett](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/brett/32/261_2.png) [@brett](https://qa.fmod.com/u/brett)\
**Post date:** [October 17, 2015, 10:46pm UTC](https://qa.fmod.com/t/how-to-connect-two-systems/12091/2 "2015-10-17T22:46:14Z")

</div>

Hi Massimo,  
You can’t connect 2 systems, because they may be running at slightly different rates, because they use different hardware clocks etc.

You have to memcpy the data across by using a custom DSP, one that buffers data, and the other that receives it. Because this may introduce latency because you’d have to double buffer it, you’d have to delay the output of the source signal by 1 buffer to compensate.

Next, because the rates might be slightly different as I said, it would probably be worth using playDSP on the receive side, which is adjusted slightly with setFrequency based on drift. You may not need to do this on your setup, but you could try without it first.

---

<div class="post-metadata">

**Author:** ![maxmayer](https://avatars.discourse-cdn.com/v4/letter/m/96bed5/32.png) [@maxmayer](https://qa.fmod.com/u/maxmayer)\
**Post date:** [October 23, 2015, 3:15pm UTC](https://qa.fmod.com/t/how-to-connect-two-systems/12091/3 "2015-10-23T15:15:15Z")

</div>

> [@](#):
>
> Hi Massimo,  
> You can’t connect 2 systems, because they may be running at slightly different rates, because they use different hardware clocks etc.
> 
> You have to memcpy the data across by using a custom DSP, one that buffers data, and the other that receives it. Because this may introduce latency because you’d have to double buffer it, you’d have to delay the output of the source signal by 1 buffer to compensate.
> 
> Next, because the rates might be slightly different as I said, it would probably be worth using playDSP on the receive side, which is adjusted slightly with setFrequency based on drift. You may not need to do this on your setup, but you could try without it first.

Hi Brett,  
thanks for the reply.

I will try what you have suggested.

Massimo
