Inhaltsverzeichnis

cpStopSound()

Syntax

Befehl cpStopSound()
Funktion beendet sofort die Wiedergabe der Sounddatei, welche mit cpSound() gestartet wurde.
Typ
ab 2.3.0 build 164


Codebeispiel

var
SoundFile: string;
begin
  SoundFile := 'Test.wav';
  cpSound(SoundFile);
  ...
  ...
  cpStopSound();
  ...
  ...
end.

Dieser Code spielt das Soundfile ab, welches in der Klammer steht. Dafür muss das Soundfile im Ordner vom AddOn hinterlegt sein. Mögliche Formate sind wav oder mp3 und beendet sofort das Abspielen mit dem Befehl cpStopSound();.


Start - FAQ - Glossar - Sitemap - Impressum

 
cockpit-xp/addon/befehlsreferenz/cpstopsound.txt · Zuletzt geändert: 2020/11/28 12:15 (Externe Bearbeitung)