diff options
author | brunzelchen <brunzelchen@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2010-10-17 11:35:26 +0000 |
---|---|---|
committer | brunzelchen <brunzelchen@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2010-10-17 11:35:26 +0000 |
commit | 6857c4c06206f80aee1855951b916a6526c87fc7 (patch) | |
tree | 24dc6438ab5c1c470a16ff85c4fa60aa70275865 /medley_new/src/base | |
parent | b75e7399a7a3b7672d85f52013f916d06dd63651 (diff) | |
download | usdx-6857c4c06206f80aee1855951b916a6526c87fc7.tar.gz usdx-6857c4c06206f80aee1855951b916a6526c87fc7.tar.xz usdx-6857c4c06206f80aee1855951b916a6526c87fc7.zip |
added general fading (for fade-out)
it must be tested on MacOS and Linux.
a more general fading function would be better (with "fade to pause" and "fade to end").
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/experimental@2672 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'medley_new/src/base')
-rw-r--r-- | medley_new/src/base/UMusic.pas | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/medley_new/src/base/UMusic.pas b/medley_new/src/base/UMusic.pas index 0fa625ee..e21c9bd8 100644 --- a/medley_new/src/base/UMusic.pas +++ b/medley_new/src/base/UMusic.pas @@ -292,6 +292,7 @@ type procedure Pause(); virtual; abstract; procedure Stop(); virtual; abstract; procedure FadeIn(Time: real; TargetVolume: single); virtual; abstract; + procedure Fade(Time: real; TargetVolume: single); virtual; abstract; procedure GetFFTData(var data: TFFTData); virtual; abstract; function GetPCMData(var data: TPCMData): Cardinal; virtual; abstract; @@ -426,6 +427,7 @@ type procedure SetLoop(Enabled: boolean); procedure FadeIn(Time: real; TargetVolume: single); + procedure Fade(Time: real; TargetVolume: single); procedure SetSyncSource(SyncSource: TSyncSource); procedure Rewind; |