source: GTP/trunk/App/Demos/Geom/Shark3D/clod_head_demo_win32/src/res/client/actor/snd.s3d_actor @ 2236

Revision 2236, 5.2 KB checked in by gumbau, 17 years ago (diff)
Line 
1///////////////////////////////////////////////////////////////////////////////
2//
3//      ##  ######
4//       ######  ###
5//  ## ###############        Shark 3D Engine (www.shark3d.com)
6//   ########## # # #
7//    ########                Copyright (c) 1996-2006 Spinor GmbH.
8//   ######### # # #          All rights reserved.
9//  ##   ##########
10//      ##
11//
12///////////////////////////////////////////////////////////////////////////////
13
14// Definition of the snd output.
15// This includes the snd engine object and the sndport.
16
17// The client root actor is a capsule, defining an own local namespace.
18actor_ident "kit_base.capsule"
19actor_param
20{
21    active 1
22    // Scope name for reporting errors:
23    scope "snd"
24    // Name of the capsule actor within its own namespace.
25    // Actors within the capsule can access the capsule
26    // actor itself by this name.
27    local_name "capsule"
28    // Delegate events from outside:
29    deleg_target "dispatch_export"
30    // The capsule actor contains a group of actors:
31    child_ident "kit_base.group"
32    child_param
33    {
34        active 1
35        child_array
36        {
37            // Dispatcher for commands from outside the capsule.
38            ident "kit_base.dispatch"
39            param
40            {
41                name "dispatch_export"
42                entry_array
43                {
44                    cmds "set_sndmgr_level"
45                    targets "sndsect_level"
46                    newcmd "assign_sndmgr"
47                }
48                {
49                    cmds "set_state_display"
50                    targets "sndport_display"
51                    newcmd "assign_state"
52                }
53                {
54                    cmds "set_state_world"
55                    targets "sndport_world"
56                    newcmd "assign_state"
57                }
58                {
59                    cmds "set_state_sky"
60                    targets "sndport_sky"
61                    newcmd "assign_state"
62                }
63                {
64                    // Update camera transformation of world:
65                    cmds "set_camera_efftransf"
66                    targets
67                        "sndport_world"
68                    newcmd "set_transf"
69                }
70                {
71                    cmds "suspend"
72                    targets
73                }
74                {
75                    cmds "update"
76                    targets "sndport_display"
77                    newcmd "perform"
78                }
79            }
80        }
81        {
82            // Snd engine.
83            ident "kit_io.sndeng"
84            param
85            {
86                active 1
87                name "sndeng"
88                extcfg_actor "^^^cfg"
89                extcfg_entry_param "snd"
90                given_array
91                {
92                    item "^ctx"
93                    given_ident "ctx"
94                }
95            }
96        }
97        {
98            // 3D graphics engine:
99            ident "kit_engbase.sndctx"
100            param
101            {
102                name "sndctx"
103                sndeng "sndeng"
104            }
105        }
106        {
107            // 3D graphics engine:
108            ident "kit_engbase.sndsect"
109            param
110            {
111                name "sndsect_display"
112                sndctx "sndctx"
113                sndmgr_actor "^^display"
114                sndmgr_cmd "get_display_sndmgr"
115            }
116        }
117        {
118            // 3D graphics engine:
119            ident "kit_engbase.sndsect"
120            param
121            {
122                name "sndsect_level"
123                sndctx "sndctx"
124                sndmgr_actor ""
125                sndmgr_cmd ""
126            }
127        }
128        {
129            // Sndport for sky:
130            ident "kit_engbase.sndport"
131            param
132            {
133                active 1
134                name "sndport_sky"
135                sndctx "sndctx"
136                next ""
137                couple 0
138            }
139        }
140        {
141            // Sndport for world:
142            ident "kit_engbase.sndport"
143            param
144            {
145                active 1
146                name "sndport_world"
147                sndctx "sndctx"
148                next "sndport_sky"
149                couple 1
150            }
151        }
152        {
153            // Sndport for display:
154            ident "kit_engbase.sndport"
155            param
156            {
157                active 1
158                name "sndport_display"
159                sndctx "sndctx"
160                next "sndport_world"
161                couple 0
162                state_actor "^^display"
163                state_cmd "get_display_state"
164            }
165        }
166       
167        /*{
168            // CD Player:
169            ident "kit_special.s3d_actorplayer"
170            param
171            {
172                name "cdplayer"
173                stop_on_destruct 1
174            }
175        }*/
176        /*{
177            // Start the first track of the CD on startup.
178            ident "kit_base.oninit"
179            param
180            {
181                target "cdplayer"
182                cmd "play_track_one"
183            }
184        }*/
185    }
186}
Note: See TracBrowser for help on using the repository browser.