title: Copying data from one AudioSampleBuffer to another in a different class
body: <p>I have two separate AudioSampleBuffer objects in two separate classes. Here is the private section of the first class which is called TransportBar.h:</p>
  
  <pre><code>private:
  Atomic&lt;int&gt; playState;
  Atomic&lt;int&gt; soloState;
  Atomic&lt;int&gt; muteState;
  
  unsigned int bufferPosition;
  AudioSampleBuffer masterBuffer;
  static const int bufferSize = 352800; //constant
  </code></pre>
  
  <p>and here is the private section of the section class which is called Looper.h:</p>
  
  <pre><code>private:  
  //Shared data
  Atomic&lt;int&gt; recordState;
  Atomic&lt;int&gt; playState;
  
  //Audio data
  static const int bufferSize = 352800; //constant
  unsigned int bufferPosition;
  AudioSampleBuffer audioSampleBuffer;
  </code></pre>
  
  <p>The application I am creating has 4 tracks which record to audioSampleBuffer. I then want a "master" play button, which plays all this data. Therefor what I need to do is copy the data from audioSampleBuffer to masterBuffer. Is there a way to do this?</p>