A lame question : How can i keep encoded data of an audio file in mql code

To add comments, please log in or register
Tusher Ahmed
169
Tusher Ahmed  

I'm using customized sound waves (PlaySound()) in my Algo &  don't want to provide a separate .wav/mp3 audio file for  voice/sound-alerts.

How can I make the script generate the audio file , on its own?

Is it possible to encode the .wav file & keep the bytes in the mql , somehow?

 

silly question ....so i'm open to all suggestions (silly or wise--whatever) ....LOLOLOL

Tusher Ahmed
169
Tusher Ahmed  

Dear all admins (including sir @Alain Verleyen @whroeder1 )

I'm afraid to bother you. If you think it's a non-technical/irrelevant topic, you can delete this thread.

If you think it can be achieved programatically, I'd like to hear your opinions. You are very experienced. I learned a lot about advanced MQL techniques, reading your posts.

Marco vd Heijden
Moderator
8160
Marco vd Heijden  
Documentation on MQL5: Common Functions / ResourceCreate
Documentation on MQL5: Common Functions / ResourceCreate
  • www.mql5.com
If the second version of the function is called for creating the same resource with different width, height and shift parameters, it does not create a new resource, but simply updates the existing one. The first version of the function is used for uploading images and sounds from...
Alain Verleyen
36042
Alain Verleyen  
See documentation
Intellectual Control - Working with Source Code - MetaTrader 5
Intellectual Control - Working with Source Code - MetaTrader 5
  • www.metatrader5.com
Different tools, from the auto substitution of names and tips of functions to bookmarks and hotkeys, are implemented in MetaEditor for the convenient development of programs. These means allow to quicken up the process of the source code writing, conveniently navigate through it and avoid mistakes. Any changes made to the source code can be...
To add comments, please log in or register