In this lesson, explain how to use audio in a program using the MMSystem library, the SNDPlayaySound instruction, and the alert using beep.
Explanation of instructions used:
SND_SYNC = 0;
Synchronous playback, the program must wait for the playback to complete before execution.
SND_ASYNC = 1;
Asynchronous playback, startup after the function returns, does not affect the program to continue execution.
SND_LOOP = 8;
loop, it needs to be used with SND_ASYNC.
-------------------------------------------------- ----------
Explanation of other instructions:
SND_NODEFAULT = 2;
When the sound file is missing, the function automatically returns to the default sound not playing.
SND_MEMORY = 4;
Operating memory sounds, such as sounds in resource files.
SND_NOSTOP = 16;
If the sound is currently playing, immediately return False
-------------------------------------------------- -
Note:
You can use the number or write example: instead of SND_SYNC we write 0
You can also use sndPlaySound to run resources or audio files in memory.
-------------------------------------------------- ---------------------------
#oussama_professional Tutorial in Delphi
-------------------------------------------------- ---------------------------
♥ ☺☺☺☺ ♥
If you like the video, do not forget to subscribe to the channel and admire the video to follow every new one
♥ ☺☺☺☺ ♥.
If he has any query or any questions, leave it in a comment I will answer as soon as possible
♥ ☺☺☺☺ ♥.