This file is indexed.

/usr/share/games/oneisenough/bin/sound.py is in oneisenough 0.40-3.

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
import pygame
import os

sounds = {}

def play_sound(filename, volume = 1.0):
    snd = None
    if not sounds.has_key(filename):
        try:
            sound_path = os.path.join("sounds", filename)
            snd = sounds[filename] = pygame.mixer.Sound(sound_path)
        except:
            print "Error: Sound file not found."
            return;
    else:
        snd = sounds[filename]

    snd.set_volume(volume)
    snd.play()