Is it possible to receive a sound in RIFF Wave Format using a Socket and Write it to a File and play the sound file - page 2

 
Lorentzos Roussos #:

Have you saved the file or this is the step you are at ? 

i can send the file to mql5 using the Socket connection and i am able to read the data but struggling to write the data to a file as a sound wave format and play it after.
 
RofhiT #:
i can send the file to mql5 using the Socket connection and i am able to read the data but struggling to write the data to a file as a sound wave format and play it after.

The file is written and not playable or written with 0 bytes ? 

 
RofhiT #: to clarify the problem

To clarify the problem, PlaySound only works with WAV files. Do you have the code to convert it?

 
William Roeder #:

To clarify the problem, PlaySound only works with WAV files. Do you have the code to convert it?

the binary data that i receive its in The canonical WAVE format