Simple program at delphi | Use Sound in the program | Delphi Tutorial Series

Published: 11 June 2018
on channel: Oussama Professional
1,078
37

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
♥ ☺☺☺☺ ♥.


Watch video Simple program at delphi | Use Sound in the program | Delphi Tutorial Series online, duration hours minute second in high quality that is uploaded to the channel Oussama Professional 11 June 2018. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 1,078 times and liked it 37 visitors.