diff options
author | tobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2008-01-11 12:41:51 +0000 |
---|---|---|
committer | tobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2008-01-11 12:41:51 +0000 |
commit | bc01e7c70cf07c9758e09b07af5f788a45297eee (patch) | |
tree | ce46b70aa970d88a9ba4abab095693772634a9e0 /Game/Code/Screens/UScreenSong.pas | |
parent | 69af8d0951d9c741680e9c7f5c5ccd63f36b8df5 (diff) | |
download | usdx-bc01e7c70cf07c9758e09b07af5f788a45297eee.tar.gz usdx-bc01e7c70cf07c9758e09b07af5f788a45297eee.tar.xz usdx-bc01e7c70cf07c9758e09b07af5f788a45297eee.zip |
Cleanup: Use the property Position in favor of MoveTo() (MoveTo() will be SetPosition() soon)
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@784 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'Game/Code/Screens/UScreenSong.pas')
-rw-r--r-- | Game/Code/Screens/UScreenSong.pas | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Game/Code/Screens/UScreenSong.pas b/Game/Code/Screens/UScreenSong.pas index 03ef793b..4f90e2ca 100644 --- a/Game/Code/Screens/UScreenSong.pas +++ b/Game/Code/Screens/UScreenSong.pas @@ -1524,7 +1524,7 @@ begin begin AudioPlayback.SetLoop(false); AudioPlayback.Open(CatSongs.Song[Interaction].Path + CatSongs.Song[Interaction].Mp3); - AudioPlayback.MoveTo(AudioPlayback.Length / 4); + AudioPlayback.Position := AudioPlayback.Length / 4; AudioPlayback.Play; //Set Preview Volume @@ -1768,7 +1768,7 @@ begin begin AudioPlayback.Close; if AudioPlayback.Open(CatSongs.Song[Interaction].Path + CatSongs.Song[Interaction].Mp3) then begin - AudioPlayback.MoveTo(AudioPlayback.Length / 4); + AudioPlayback.Position := AudioPlayback.Length / 4; //If Song Fading is activated then don't Play directly, and Set Volume to Null, else Play normal if (Ini.PreviewFading = 0) then AudioPlayback.Play |