Soundobjekt: Unterschied zwischen den Versionen
Aus AquaSoft Wiki
Zur Navigation springenZur Suche springen (Die Seite wurde neu angelegt: „Das Soundobjekt ist vom Typ '''ISound''' und leitet von '''ISlideShowObject''' ab. = Methoden = * Ein Soundobjekt benötigt einen Dateinamen zu der gespeiche…“) |
|||
| (2 dazwischenliegende Versionen von einem anderen Benutzer werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
Das Soundobjekt ist vom Typ '''ISound''' und leitet von '''[[ISlideShowObject]]''' ab. | Das Soundobjekt ist vom Typ '''ISound''' und leitet von '''[[ISlideShowObject]]''' ab. | ||
| + | |||
| + | <code> | ||
| + | ISound '''inherits from''' [[ISlideShowObject]] | ||
| + | function Filename: [[IFilename]]; | ||
| + | function GetSoundDuration: Integer; | ||
| + | procedure SetSoundDuration(const Value: Integer); | ||
| + | function GetUseSoundLength: Boolean; | ||
| + | procedure SetUseSoundLength(const Value: Boolean); | ||
| + | function GetFadeOutBackgroundMusic: Boolean; | ||
| + | procedure SetFadeOutBackgroundMusic(const Value: Boolean); | ||
| + | function GetFadeOutDuration: Integer; | ||
| + | procedure SetFadeOutDuration(const Value: Integer); | ||
| + | function GetMasterVolume: Integer; | ||
| + | procedure SetMasterVolume(const Value: Integer); | ||
| + | function GetStartPos: Integer; | ||
| + | procedure SetStartPos(const Value: Integer); | ||
| + | function GetSoundEnd: Integer; | ||
| + | procedure SetSoundEnd(const Value: Integer); | ||
| + | end; | ||
| + | </code> | ||
= Methoden = | = Methoden = | ||
| + | * Objekt Erzeugung | ||
| + | <code> | ||
| + | function CreateSoundObject: ISound; | ||
| + | </code> | ||
| + | |||
* Ein Soundobjekt benötigt einen Dateinamen zu der gespeicherten Sounddatei. Dieser ist als '''[[IFilename]]''' im Objekt gespeichert: | * Ein Soundobjekt benötigt einen Dateinamen zu der gespeicherten Sounddatei. Dieser ist als '''[[IFilename]]''' im Objekt gespeichert: | ||
<code> | <code> | ||
| Zeile 22: | Zeile 47: | ||
| − | * | + | * Hintergrundsound beim Abspielen ausblenden |
<code> | <code> | ||
function GetFadeOutBackgroundMusic: Boolean; | function GetFadeOutBackgroundMusic: Boolean; | ||
| Zeile 36: | Zeile 61: | ||
| − | * | + | * Lautstärke in Prozent |
| − | + | <code> | |
| − | + | function GetMasterVolume: Integer; | |
| + | procedure SetMasterVolume(const Value: Integer); | ||
| + | </code> | ||
| + | |||
| + | |||
| + | * Startzeit des Soundobjektes in Millisekunden | ||
| + | <code> | ||
| + | function GetStartPos: Integer; | ||
| + | procedure SetStartPos(const Value: Integer); | ||
| + | </code> | ||
| + | |||
| − | + | * Ende des Soundobjektes in Millisekunden | |
| − | + | <code> | |
| − | + | function GetSoundEnd: Integer; | |
| − | + | procedure SetSoundEnd(const Value: Integer); | |
| − | + | </code> | |
| − | |||
| − | |||
| − | + | [[Kategorie:Scripting-API]] | |
Aktuelle Version vom 21. August 2012, 15:19 Uhr
Das Soundobjekt ist vom Typ ISound und leitet von ISlideShowObject ab.
ISound inherits from ISlideShowObject
function Filename: IFilename;
function GetSoundDuration: Integer;
procedure SetSoundDuration(const Value: Integer);
function GetUseSoundLength: Boolean;
procedure SetUseSoundLength(const Value: Boolean);
function GetFadeOutBackgroundMusic: Boolean;
procedure SetFadeOutBackgroundMusic(const Value: Boolean);
function GetFadeOutDuration: Integer;
procedure SetFadeOutDuration(const Value: Integer);
function GetMasterVolume: Integer;
procedure SetMasterVolume(const Value: Integer);
function GetStartPos: Integer;
procedure SetStartPos(const Value: Integer);
function GetSoundEnd: Integer;
procedure SetSoundEnd(const Value: Integer);
end;
Methoden
- Objekt Erzeugung
function CreateSoundObject: ISound;
- Ein Soundobjekt benötigt einen Dateinamen zu der gespeicherten Sounddatei. Dieser ist als IFilename im Objekt gespeichert:
function Filename: IFilename;
- Gesamtlänge des Sounds in Millisekunden
function GetSoundDuration: Integer;
procedure SetSoundDuration(const Value: Integer);
- Abspieldauer Sound-beinhaltenden Objektes an die Soundlänge anpassen
function GetUseSoundLength: Boolean;
procedure SetUseSoundLength(const Value: Boolean);
- Hintergrundsound beim Abspielen ausblenden
function GetFadeOutBackgroundMusic: Boolean;
procedure SetFadeOutBackgroundMusic(const Value: Boolean);
- Einblenddauer des Sounds in Millisekunden
function GetFadeOutDuration: Integer;
procedure SetFadeOutDuration(const Value: Integer);
- Lautstärke in Prozent
function GetMasterVolume: Integer;
procedure SetMasterVolume(const Value: Integer);
- Startzeit des Soundobjektes in Millisekunden
function GetStartPos: Integer;
procedure SetStartPos(const Value: Integer);
- Ende des Soundobjektes in Millisekunden
function GetSoundEnd: Integer;
procedure SetSoundEnd(const Value: Integer);