From 7e4373d4c9d5718f8beb97a28763a68580ad8ea9 Mon Sep 17 00:00:00 2001 From: tobigun Date: Wed, 5 Dec 2007 21:35:23 +0000 Subject: 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 --- Game/Code/Classes/UMedia_dummy.pas | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) (limited to 'Game') 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. -- cgit v1.2.3