/////////////////////////////////////////////////////////////////////////////// // // ## ###### // ###### ### // ## ############### Shark 3D Engine (www.shark3d.com) // ########## # # # // ######## Copyright (c) 1996-2006 Spinor GmbH. // ######### # # # All rights reserved. // ## ########## // ## // /////////////////////////////////////////////////////////////////////////////// // Definition of the snd output. // This includes the snd engine object and the sndport. // The client root actor is a capsule, defining an own local namespace. actor_ident "kit_base.capsule" actor_param { // Delegate the action calls to all children: active 1 // Scope name for reporting errors: scope "snd" // Name of the capsule actor within its own namespace. // Actors within the capsule can access the capsule // actor itself by this name. local_name "capsule" // Delegate events from outside: deleg_target "dispatch_export" // The capsule actor contains a group of actors: child_ident "kit_base.group" child_param { // Delegate action calls to the children. active 1 child_array { // Dispatcher for commands from outside the capsule. ident "kit_base.dispatch" param { name "dispatch_export" entry_array { cmds "set_sndmgr_level" targets "sndsect_level" newcmd "assign_sndmgr" } { cmds "set_state_display" targets "sndport_display" newcmd "assign_state" } { cmds "set_state_world" targets "sndport_world" newcmd "assign_state" } { cmds "set_state_sky" targets "sndport_sky" newcmd "assign_state" } { // Update camera transformation of world: cmds "set_camera_efftransf" targets "sndport_world" newcmd "set_transf" } { cmds "suspend" targets } { cmds "update" targets "sndport_display" newcmd "perform" } } } { // Snd engine. ident "kit_io.sndeng" param { name "sndeng" active 1 extcfg_actor "^^^cfg" extcfg_entry_param "snd" given_array { item "^ctx" given_ident "ctx" } } } { // 3D graphics engine: ident "kit_engbase.sndctx" param { name "sndctx" sndeng "sndeng" } } { // 3D graphics engine: ident "kit_engbase.sndsect" param { name "sndsect_display" sndctx "sndctx" sndmgr_actor "^^display" sndmgr_cmd "get_sndmgr" } } { // 3D graphics engine: ident "kit_engbase.sndsect" param { name "sndsect_level" sndctx "sndctx" sndmgr_actor "" sndmgr_cmd "" } } { // Sndport for sky: ident "kit_engbase.sndport" param { active 1 name "sndport_sky" sndctx "sndctx" next "" couple 0 } } { // Sndport for world: ident "kit_engbase.sndport" param { active 1 name "sndport_world" sndctx "sndctx" next "sndport_sky" couple 1 } } { // Sndport for display: ident "kit_engbase.sndport" param { active 1 name "sndport_display" sndctx "sndctx" next "sndport_world" couple 0 state_actor "^^display" state_cmd "get_state" } } /*{ // CD Player: ident "kit_special.s3d_actorplayer" param { name "cdplayer" stop_on_destruct 1 } }*/ /*{ // Start the first track of the CD on startup. ident "kit_base.oninit" param { target "cdplayer" cmd "play_track_one" } }*/ } }