there is no need to write to the file. WebRequest method formats
What does "download" mean? The sound file obtained after the text conversion should be placed in the Sounds folder in order for the Expert Advisor to play it. The sound is created in EA by PlaySound function, not WebRequest, and it takes an audio file from Sounds folder. I'm telling you that the task is almost impossible.
Реter Konow: What do you mean "download"? The sound file obtained after text conversion must be placed in the Sounds folder for the Expert Advisor to play it. The PlaySound function, not WebRequest, creates the sound in the Expert Advisor, and it takes an audio file from the Sounds folder. I'm telling you that the task is almost impossible.
yep...
it's impossible to play a wav file from a sandbox without a DLL?
it's impossible to play a wav file from a sandbox without a DLL?
How will it end up in the sandbox? After conversion, you need to put the resulting file in the sandbox. Webrequest will not do this. How do you write it automatically into the Sounds folder?
I assume that the result of the WebRequest will be a WAV file downloaded from the server. Here is the result of the following code
the problem at this stage is that hello_world.wav comes up empty, because the format of the WebRequest call is clearly wrong
Even if you get a valid sound file from server to EA via socket or webrequest, you cannot write it to Sounds folder, so PlaySound will not be able to play it.
Реter Konow: Even if you get a valid sound file from the server to the EA via socket or webrequest, you cannot write it to the Sounds folder, which means that PlaySound will not be able to play it.
IsPlaySound the only option to play a wav file without a DLL?
Реter Konow: Even if you get a valid sound file to the EA from the server via socket or webrequest, you cannot write it to the Sounds folder, which means that PlaySound will not be able to play it.
see above on the subject - anything is possible, but requires the will of the user
В данном примере показано как проигрывать звуки из файлов Ok.wav и timeoit.wav, входящих в стандартную поставку терминала. Эти файлы находятся в папке означает папку, из которой запущен клиентский терминал MetaTrader 5. Программным путем из mql5-программы каталог терминала можно узнать следующим образом: Расположение каталога данных терминала...
there is no need to write to the file. WebRequest method formats
What do you mean "download"? The sound file obtained after text conversion must be placed in the Sounds folder for the Expert Advisor to play it. The PlaySound function, not WebRequest, creates the sound in the Expert Advisor, and it takes an audio file from the Sounds folder. I'm telling you that the task is almost impossible.
yep...
it's impossible to play a wav file from a sandbox without a DLL?
yep...
it's impossible to play a wav file from a sandbox without a DLL?
How will it end up in the sandbox???
I assume that the result of the WebRequest will be a WAV file downloaded from the server. Here is the result of the following code
the problem at this stage is that hello_world.wav comes up empty, because the format of the WebRequest call is clearly wrong
I assume that the result of the WebRequest will be a WAV file downloaded from the server. Here is the result of the following code
the problem at this stage is that hello_world.wav comes up empty, because the format of the WebRequest call is clearly wrong
Even if you get a valid sound file from the server to the EA via socket or webrequest, you cannot write it to the Sounds folder, which means that PlaySound will not be able to play it.
IsPlaySound the only option to play a wav file without a DLL?
Is PlaySound the only option to play a wav file without a DLL?
Even if you get a valid sound file to the EA from the server via socket or webrequest, you cannot write it to the Sounds folder, which means that PlaySound will not be able to play it.
see above on the subject - anything is possible, but requires the will of the user
Yes.
shitty )
Yes.
wait, what about this
//--- play sound file Demo.wav from terminal_data_directory\MQL5\Files\
PlaySound("\\\Files\\\Demo.wav")
https://www.mql5.com/ru/docs/runtime/resources