diff options
author | tobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2007-12-05 21:35:23 +0000 |
---|---|---|
committer | tobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2007-12-05 21:35:23 +0000 |
commit | 7e4373d4c9d5718f8beb97a28763a68580ad8ea9 (patch) | |
tree | 5365f1d425273caac1dd9dfdae67d0b687caaf78 /Game | |
parent | 9ced8826685af3aece39649fb0912780781ab2ae (diff) | |
download | usdx-7e4373d4c9d5718f8beb97a28763a68580ad8ea9.tar.gz usdx-7e4373d4c9d5718f8beb97a28763a68580ad8ea9.tar.xz usdx-7e4373d4c9d5718f8beb97a28763a68580ad8ea9.zip |
Removed duplicated registration to the AudioManager. Registering once is enough (Casting has no effect here)
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@667 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'Game')
-rw-r--r-- | Game/Code/Classes/UMedia_dummy.pas | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/Game/Code/Classes/UMedia_dummy.pas b/Game/Code/Classes/UMedia_dummy.pas index 0c788677..42a3f1b9 100644 --- a/Game/Code/Classes/UMedia_dummy.pas +++ b/Game/Code/Classes/UMedia_dummy.pas @@ -261,19 +261,11 @@ end; initialization singleton_dummy := Tmedia_dummy.create(); - writeln( 'UMedia_dummy - Register dummy Video_Playback' ); - AudioManager.add( IVideoPlayback( singleton_dummy ) ); + writeln( 'UMedia_dummy - Register' ); + AudioManager.add( singleton_dummy ); - writeln( 'UMedia_dummy - Register dummy Video_Playback' ); - AudioManager.add( IAudioPlayback( singleton_dummy ) ); - - writeln( 'UMedia_dummy - Register dummy Video_Playback' ); - AudioManager.add( IAudioInput( singleton_dummy ) ); - finalization - AudioManager.Remove( IVideoPlayback( singleton_dummy ) ); - AudioManager.Remove( IAudioPlayback( singleton_dummy ) ); - AudioManager.Remove( IAudioInput( singleton_dummy ) ); - + writeln( 'UMedia_dummy - UnRegister' ); + AudioManager.Remove( singleton_dummy ); end. |