/usr/share/games/instead/stead/sound.lua is in instead-data 1.9.1-1.
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 | stead.sound_load = instead_sound_load
stead.sound_free = instead_sound_free
stead.sounds_free = instead_sounds_free
stead.sound_channel = instead_sound_channel
stead.sound_volume = instead_sound_volume
stead.sound_panning = instead_sound_panning
sound = {
nam = 'sound';
object_type = true;
system_type = true;
load = function(fname)
return stead.sound_load(fname);
end;
free = function(key)
return stead.sound_free(key);
end;
play = function(key, ...)
return stead.add_sound(key, ...)
end;
stop = function(...)
stead.stop_sound(...);
end;
playing = function(s,...)
if type(s) ~= 'number' then
return stead.is_sound()
end
return stead.sound_channel(s,...)
end;
pan = function(c, l, r, ...)
return stead.sound_panning(c, l, r, ...)
end;
vol = function(v, ...)
return stead.sound_volume(v, ...)
end
}
stead.module_init(function()
stead.sounds_free();
end)
|