title: Directsound stream synchronisation
body: <p>I have a question regarding the synchronization of 2 Directsound streams.</p>
  
  <p>To record and play sound I currently use Portaudio to open 2 Directsound streams.
  There are 2 callback functions which are called every time the input buffer is filled and the output buffer needs data.</p>
  
  <p>Now here`s my problem...</p>
  
  <p>The input stream is running at 48kHz samplerate (@1024 samples). The output stream is running at 192kHz samplerate (@4096 samples). Every time the input buffer is filled and the callback is called I do some DSP and after that I convert the result to 192kHz. The output stream takes the result and outputs the data. Now the 2 streams are running completely out of sync.</p>
  
  <p>I have looked through the entire Portaudio API but I cant`t find a sync option to lock the 2 streams together.</p>
  
  <p>Is there any way to lock 2 Directsound streams? I really need 48kHz input and 192kHz output.  </p>
  
  <p>Br,</p>
  
  <p>Vincent Bruinink.</p>