aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-12-05 21:35:23 +0000
committertobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-12-05 21:35:23 +0000
commit7e4373d4c9d5718f8beb97a28763a68580ad8ea9 (patch)
tree5365f1d425273caac1dd9dfdae67d0b687caaf78
parent9ced8826685af3aece39649fb0912780781ab2ae (diff)
downloadusdx-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
-rw-r--r--Game/Code/Classes/UMedia_dummy.pas16
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.