Soundobjekt: Unterschied zwischen den Versionen

Aus AquaSoft Wiki
Zur Navigation springenZur Suche springen
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 =
Zeile 22: Zeile 42:
  
  
* Sound einblenden
+
* Hintergrundsound beim Abspielen ausblenden
 
<code>
 
<code>
 
   function GetFadeOutBackgroundMusic: Boolean;
 
   function GetFadeOutBackgroundMusic: Boolean;

Version vom 15. August 2012, 13:57 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

  • 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);