This file is indexed.

/usr/share/games/enigma/sound-defaults.lua is in enigma-data 1.20-dfsg.1-2.1build1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
------------------------------------------------------------------------
-- Copyright (C) 2002,2003,2004,2005 Daniel Heck
-- Copyright (C) 2007 Andreas Lochmann
--
-- This program is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License along
-- with this program; if not, write to the Free Software Foundation, Inc.,
-- 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
--
-- $Id: startup.lua,v 1.21 2004/02/15 11:54:36 dheck Exp $
------------------------------------------------------------------------

----------------------------------------------------------------------
-- Sound handling
----------------------------------------------------------------------

default_sound = { name = "",
                  file = "",
                  volume = 1.0,
                  loop = false,
                  global = false,
                  priority = 1,
                  damp_max = 10.0,
                  damp_inc = 1.0,
                  damp_mult = 1.0,
                  damp_min = 0.5,
                  damp_tick = 0.9,
                  silence_string = "$default$" }

-- Complete a sound effect definition with name 'k' and info 't'
function complete_sound(k, t)
    local tt = {}
    if type(t) == "string" then
        for key, value in pairs(default_sound) do
            tt[key] = value
        end
        tt.file = t
    elseif type(t) == "table" then
        for key, value in pairs(default_sound) do
            tt[key] = t[key] or value
            -- Special fix for "global" and "loop" values of 1.00 sound sets
            if (key == "global") or (key == "loop") then
                if tt[key] == 1 then
                    tt[key] = true
                elseif tt[key] == 0 then
                    tt[key] = false
                end
            end
        end
    else
        error("Syntax error in sound table, effect name "..k..".")
        return default_sound
    end
    -- Fill in the silence string if requested
    if (tt.silence_string == "$default$") then
        tt.silence_string = (soundtable_silent[k] or {}).silence_string or k
    end
    return tt
end

-- Copy all key/value pairs only present in t1 to t2.
function copy_missing (t1, t2)
    for k,v in pairs(t1) do
        t2[k] = t2[k] or v
    end
end

-- Add a new sound set
function AddSoundSet (soundtable_name, soundtable)
    for soundeffect_name, soundeffect_info in pairs(soundtable) do
        local soundeffect_name_api2 = soundtable_renamings_api1_to_api2[soundeffect_name] or soundeffect_name
        local r = complete_sound(soundeffect_name_api2, soundeffect_info)  -- completed data set
        sound.DefineSoundEffect(soundtable_name, soundeffect_name_api2, r.file, r.volume,
            r.loop, r.global, r.priority, r.damp_max, r.damp_inc, r.damp_mult,
            r.damp_min, r.damp_tick, r.silence_string)
    end
end

-- Activate a sound set by name
function ActivateSoundSet (name)
    sound.SetActiveSoundSet(name)
end

-- Compatibility with 1.00 sound.lua's
function Sound (t)  return t  end
AddSoundTable = AddSoundSet

soundtable_renamings_api1_to_api2 = {
    blackbomb = "bomb_black",
    booze = "bottle",
    fart = "quake", 
    whitebomb = "bomb_white",
}

------------------------
-- Enigma Sound table --
------------------------

-- Note that no "#" is allowed within a sound event name!

soundtable_enigma = {
    [""]           = "",        -- empty sound
    ballcollision  = "enigma/ballcollision",  -- world
    blockerdown    = "",
    blockerup      = "",
    bomb_black      = "enigma/explosion1", -- it_bomb
    bomb_white      = "enigma/explosion1", -- it_bomb
    bottle         = "",
    bumper         = "enigma/bumper",     -- st_actorimpulse
    cloth          = { file="enigma/st-thud", damp_max = 4.0 },
    coinslotoff    = "",
    coinsloton     = "enigma/st-coinslot",
    crack          = "",                  -- st_window ring scratch, it_crack enlarge
    doorclose      = "enigma/doorclose",  -- missing, st_door_d
    dooropen       = "enigma/dooropen",   -- missing, st_door_d
    drown          = "enigma/drown",      -- st_plop, st_flat falling
    dynamite       = "enigma/explosion2", -- replace?, it_dyanmite, it_puller explosion
    electric       = "enigma/st-stone",   -- replace
    exit           = { file="enigma/exit", global=true },  -- missing
    extinguish     = "",
    fakeoxyd       = { file="enigma/st-fakeoxyd", volume=0.3 }, -- st_fake
    falldown       = "enigma/falldown",   -- missing, unused (falling is shatter!)
    finished       = { file="enigma/finished", global=true },  -- missing, client on finish
    floordestroy   = "",                  -- it_crack dissolve floor
    fourswitch     = "enigma/st-switch",  -- st_fourswitch turn
    glass          = "enigma/st-metal",   -- replace
    hitfloor       = "enigma/stone",      -- missing, it-vortex ball swallowed
    impulse        = "",                  -- st_stoneimpulse
    intro          = { file="enigma/intro", global=true },  -- missing
    invrotate      = { file="enigma/invrotate", global=true },
    itemtransform  = "enigma/st-magic",   -- it_coin, it_extralife, it_hammer, it_banana, it_sword, it_umbrella laser transform
    jump           = "enigma/boink",       -- balls jumping
    jumppad        = "",
    landmine       = "enigma/explosion2",  -- replace?, it_landmine
    laserloop      = "",
    laseron        = { file="enigma/st-laser", damp_max = 20.0, damp_inc = 2.0 }, -- it_laser
    laseroff       = "",
    lock           = "",
    magneton       = "",
    magnetoff      = "",
    mail           = "",
    menuexit        = { file="enigma/menuexit", global=true },
    menumove        = { file="enigma/menumove", global=true },
    menuok          = { file="enigma/menuok", global=true },
    menustop        = { file="enigma/menustop", global=true },
    menuswitch      = { file="enigma/menuswitch", global=true },
    metal          = "enigma/st-metal",
    mirrorturn     = "enigma/st-mirrorturn", -- st_mirror
    movebig        = "enigma/st-move",
    moveslow       = "enigma/st-move",
    movesmall      = { file="enigma/st-move", damp_max = 10.0, damp_inc = 2.0 },
    oxydclose      = "enigma/st-oxydclose",  -- missing, not neccessary I think
    oxydopen       = { file="enigma/st-oxydopen", damp_max = 200.0, damp_inc = 5.0 },
    oxydopened     = "enigma/st-oxydopened",
    pickup         = { file="enigma/pickup", global=true }, -- it_bag pickup
    puller         = "",                 -- it_puller rotating
    puzzlerotate   = "enigma/st-move",
    quake          = "enigma/quake",     -- st_quake, st_oxyd fart
    rubberband     = "enigma/boing",     -- st7it_rubberband connect 
    scissors       = "",                 -- st_scissors snip
    seedgrow       = "enigma/seedgrow",  -- missing, it_seed
    shatter        = "enigma/shatter",   -- st_window, it_bottle, it_glasses breaking
    shattersmall   = "enigma/shatter",   -- replace, "shattersmall" is missing, st_pearl shatter
    shogunoff      = "",
    shogunon       = "",
    shuffle        = "enigma/switch",    -- st_oxyd
    skull          = "",
    spade          = "",                 -- it_spade
    squish         = "",
    stone          = "enigma/st-stone",
    stonedestroy   = "enigma/explosion0",  -- stone breaking
    stonepaint     = "enigma/st-magic",  -- st_magic brick, st_ghost paint, st_flat pencil, st_chess recolor
    stonetransform = "enigma/st-magic",  -- st_surprise, st_magic oxyd*
    swamp          = "enigma/swamped",   -- balls sinking
    switchmarbles  = "enigma/warp",      -- missing, it_ring
    switchoff      = "",
    switchon       = "enigma/st-switch",
    switchplayer   = "enigma/switch",    -- st/it_yinyang
    sword          = "",
    thief          = "enigma/thief",     -- missing, st/fl_thief stealing
    triggerdown    = "enigma/it-triggerdown", -- it_trigger
    triggerup      = "enigma/it-triggerup",   -- it_trigger
    turnstileleft  = "enigma/turnstileleft",  -- missing
    turnstileright = "enigma/turnstileright", -- missing
    umbrellaoff    = "",
    umbrellaon     = "",
    umbrellawarn   = "",
    unlock         = "enigma/unlock",    -- missing
    vortexclose    = "enigma/doorclose", -- missing
    vortexopen     = "enigma/dooropen",  -- missing
    warp           = "enigma/warp",      -- missing, maybe suck2?
    wood           = "enigma/wood",
    yinyang        = "enigma/st-magic",  -- st_blur transformation,
}

soundtable_silent = {
    [""]           = "",        -- empty sound
    ballcollision  = { silence_string = "tack" },
    blockerdown    = "",
    blockerup      = "",
    bomb_black     = { silence_string = "KABOOM!" },
    bomb_white     = { silence_string = "KABOOOOM!!" },
    bottle         = "",
    bumper         = { silence_string = "Doinc" },
    cloth          = { silence_string = "bump" },
    coinslotoff    = "",
    coinsloton     = { silence_string = "kachink" },
    crack          = { silence_string = "Crrr..." },
    doorclose      = "",
    dooropen       = "",
    drown          = { silence_string = "blupp" },
    dynamite       = { silence_string = "Boom!" },
    electric       = { silence_string = "cling" },
    exit           = "",
    extinguish     = { silence_string = "pfff..." },
    fakeoxyd       = { silence_string = "ding-dang" },
    falldown       = "",
    finished       = { silence_string = "Finished!" },
    floordestroy   = { silence_string = "CrraaACK!" },
    fourswitch     = { silence_string = "Clihick" }, 
    glass          = { silence_string = "Cliorr" },
    hitfloor       = { silence_string = "Bang" },
    impulse        = "",
    intro          = "",
    invrotate      = "",
    itemtransform  = { silence_string = "Tatam!" },
    jump           = { silence_string = "Doink" },
    jumppad        = { silence_string = "da-Doink" },
    landmine       = { silence_string = "click-BANG!" },
    laserloop      = "",
    laseron        = { silence_string = "wuuiim!" },
    laseroff       = "",
    lock           = "",
    magneton       = "",
    magnetoff      = "",
    mail           = "",
    menuexit       = "",
    menumove       = "",
    menuok         = "",
    menustop       = "",
    menuswitch     = "",
    metal          = { silence_string = "clang" },
    mirrorturn     = { silence_string = "wrrr" },
    movebig        = { silence_string = "swosh" },
    moveslow       = { silence_string = "swosh" },
    movesmall      = { silence_string = "swosh" },
    oxydclose      = "",
    oxydopen       = { silence_string = "da-Ding" },
    oxydopened     = { silence_string = "da-Dang!" },
    pickup         = { silence_string = "pick" },
    puller         = "",
    puzzlerotate   = { silence_string = "rot-rot" },
    quake          = { silence_string = "grummel" },
    rubberband     = { silence_string = "Boing!" },
    scissors       = "",
    seedgrow       = { silence_string = "krk...krk" },
    shatter        = { silence_string = "CLIRR!!" },
    shattersmall   = { silence_string = "CLIRR!" },
    shogunoff      = "",
    shogunon       = "",
    shuffle        = "",
    skull          = "",
    spade          = "",
    squish         = "",
    stone          = { silence_string = "dopp" },
    stonedestroy   = { silence_string = "BANG!" },
    stonepaint     = { silence_string = "flatsh" },
    stonetransform = { silence_string = "Tradam!" },
    swamp          = { silence_string = "gulp" },
    switchmarbles  = "",
    switchoff      = "",
    switchon       = { silence_string = "Click" },
    switchplayer   = { silence_string = "switch-switch" },
    sword          = "",
    thief          = { silence_string = "hehee!" },
    triggerdown    = { silence_string = "ca-lik" },
    triggerup      = { silence_string = "ca-lak" },
    turnstileleft  = "",
    turnstileright = "",
    umbrellaoff    = "",
    umbrellaon     = "",
    umbrellawarn   = "",
    unlock         = "",
    vortexclose    = "",
    vortexopen     = "",
    warp           = "",
    wood           = { silence_string = "dok" },
    yinyang        = { silence_string = "Tradim!" },
}

soundtable_oxyd = {
    [""]           = "",        -- empty sound
    ballcollision  = "OXKLICK3.SDD",
    blockerdown    = "",
    blockerup      = "",
    bomb_black     = "OXCRASH2.SDD",
    bomb_white     = "OXCRASH2.SDD",
    bottle         = "",
    bumper         = "OXWOUOU.SDD",
    cloth          = "OXKLICK4.SDD",
    coinslotoff    = "",
    coinsloton     = "OXMONEY.SDD",
    crack          = { file="OXCRACK.SDD", volume=0.7 },
    doorclose      = "OXMOTOR.SDD",
    dooropen       = "OXMOTOR.SDD",
    drown          = "OXBLOOP.SDD",
    dynamite       = "OXCRASH1.SDD",
    electric       = "OXKLICK6.SDD",
    exit           = { file="OXEXIT.SDD", global=true },
    extinguish     = "",
    fakeoxyd       = "",
    falldown       = "",
    finished       = { file="OXFINITO.SDD", global=true },
    floordestroy   = "OXCRASH2.SDD",
    fourswitch     = "",
    glass          = "OXKLICK1.SDD",
    hitfloor       = "OXKLICK1.SDD",
    impulse        = "OXWOUOU.SDD",
    intro          = { file="OXINTRO.SDD", global=true },
    invrotate      = { file="OXINVROT.SDD", global=true },
    itemtransform  = "OXMAGIC.SDD",
    jump           = "OXJUMP.SDD",
    jumppad        = "",
    landmine       = "enigma/explosion1",
    laserloop      = "",
    laseron        = "OXLASER.SDD",
    laseroff       = "",
    lock           = "",
    magneton       = "",
    magnetoff      = "",
    mail           = "",
    metal          = "OXKLICK2.SDD",
    mirrorturn     = "OXTURN.SDD",
    movebig        = "OXMOVE.SDD",
    moveslow       = "OXMOVE.SDD",
    movesmall      = "OXMOVE.SDD",
    oxydclose      = "OXMEMCL.SDD",
    oxydopen       = "OXMEMOP.SDD",
    oxydopened     = "OXMEMOK.SDD",
    pickup         = "OXINVENT.SDD",
    puller         = "OXPULLER.SDD",
    puzzlerotate   = "OXMOVE.SDD",
    quake          = "OXUNTITL.SDD",
    rubberband     = "OXBOING.SDD",
    scissors       = "OXCUT.SDD",
    seedgrow       = "",
    shatter        = "OXKLIRR.SDD",
    shattersmall   = "OXKLIRR.SDD",
    shogunoff      = "",
    shogunon       = "",
    shuffle        = "",
    skull          = "",
    spade          = "",
    squish         = "OXMATSCH.SDD",
    stone          = "OXKLICK1.SDD",
    stonedestroy   = "OXCRASH2.SDD",
    stonepaint     = "OXMAGIC.SDD",
    stonetransform = "OXMAGIC.SDD",
    swamp          = "OXBLOOP.SDD",
    switchmarbles  = "",
    switchoff      = "",
    switchon       = "",
    switchplayer   = "",
    sword          = "",
    thief          = "OXTHIEF.SDD",
    triggerdown    = "OXSWON.SDD",
    triggerup      = "OXSWOFF.SDD",
    turnstileleft  = "OXMAGIC4.SDD",
    turnstileright = "OXMAGIC3.SDD",
    umbrellaoff    = "",
    umbrellaon     = "",
    umbrellawarn   = "",
    unlock         = "",
    vortexclose    = "OXMOTOR.SDD",
    vortexopen     = "OXMOTOR.SDD",
    warp           = "OXTRANS.SDD",
    wood           = "OXKLICK1.SDD",
    yinyang        = "OXMAGIC.SDD",
}    
copy_missing (soundtable_enigma, soundtable_oxyd)

soundtable_oxm = {
    turnstileleft  = "OXTURNL.SDD",
    turnstileright = "OXTURNL.SDD"
}
copy_missing (soundtable_oxyd, soundtable_oxm)

--------------------------------------
-- Register predefined sound tables --
--------------------------------------

AddSoundSet ("Oxyd*", soundtable_oxyd)
AddSoundSet ("Magnum*", soundtable_oxm)
--AddSoundSet ("Silent", soundtable_silent)
AddSoundSet ("Enigma", soundtable_enigma)

ActivateSoundSet ("Enigma")