title: delphi indy udp client and server Audio chat
body: <p>I am creating project to make a multi audio chat through Indy components and wave audio components but I am stick with an error. It's simple code but I don't know how to fix it.</p>
  
  <p>sendtocl is the client that I use</p>
  
  <pre><code>procedure TForm1.recorderData(Sender: TObject; const Buffer: Pointer;
    BufferSize: Cardinal; var FreeIt: Boolean);
  begin
    Freeit :=True;
    sendtocl.SendBuffer(Buffer^, Buffersize);
  end;
  </code></pre>
  
  <p>I got that error when compiling </p>
  
  <blockquote>
    <p>There is no overloaded version of 'SendBuffer' that can be called with these arguments</p>
  </blockquote>
  
  <p>any suggested fixes ?</p>
  
  <hr>
  
  <p>" sentocl " is my indyudpclient </p>
  
  <pre><code>procedure TForm1.recorderData(Sender: TObject; const Buffer: Pointer; BufferSize: Cardinal; var FreeIt: Boolean);
  begin
    Freeit := True;
    sendtocl.SendBuffer(RawToBytes(Buffer^, Buffersize));
  end;
  </code></pre>
  
  <p>This fixed code from Remy lebeau solve the compiling error but when i try to send the audio the text got huge data and the  other client on the network cant hear sound i think its somthing on onread with indy server the  component that i use is :</p>
  
  <p>Wave audio , indy udp server and client  ,,, using delphi xe5</p>
  
  <p>Remy can i send the audio stream through indyudp Client ? the sample in wave audio is for winsock but i realy lost how to do it with indy can you give me reference about that  </p>