diff options
author | whiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2007-03-25 15:20:46 +0000 |
---|---|---|
committer | whiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2007-03-25 15:20:46 +0000 |
commit | ccb5946db9ae26b5b40a171110e4a5fc595cb0bf (patch) | |
tree | 7310872ceffaabf13f4786818e3c7d7e3a35722e /Game/Code | |
parent | cad7f94fbc44d277261cfbb81d3047bb97b67771 (diff) | |
download | usdx-ccb5946db9ae26b5b40a171110e4a5fc595cb0bf.tar.gz usdx-ccb5946db9ae26b5b40a171110e4a5fc595cb0bf.tar.xz usdx-ccb5946db9ae26b5b40a171110e4a5fc595cb0bf.zip |
Changed Music.SetVolume from Global Wave Volume to Application-Only BassConfig
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@35 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'Game/Code')
-rw-r--r-- | Game/Code/Classes/UMusic.pas | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Game/Code/Classes/UMusic.pas b/Game/Code/Classes/UMusic.pas index db1675c5..f7f0e20d 100644 --- a/Game/Code/Classes/UMusic.pas +++ b/Game/Code/Classes/UMusic.pas @@ -342,7 +342,12 @@ end; procedure TMusic.SetVolume(Volume: integer);
begin
- BASS_SetVolume(Volume);
+ //Old Sets Wave Volume
+ //BASS_SetVolume(Volume);
+ //New: Sets Volume only for this Application
+ BASS_SetConfig(BASS_CONFIG_GVOL_SAMPLE, Volume);
+ BASS_SetConfig(BASS_CONFIG_GVOL_STREAM, Volume);
+ BASS_SetConfig(BASS_CONFIG_GVOL_MUSIC, Volume);
end;
procedure TMusic.SetLoop(Enabled: boolean);
|