6
from hwtest.constants import HWTEST_DIR
8
gnome.sound_init("localhost")
9
sound_file = os.path.join(HWTEST_DIR, "data", "sound.wav")
10
gnome.sound_play(sound_file)
13
path = "/proc/asound/card0/id"
14
if os.path.exists(path):
16
device = fd.readline().strip()
10
raise Exception, "Missing sound file as argument."
12
gnome.sound_init("localhost")
13
sound_file = os.path.join(args[0])
14
gnome.sound_play(sound_file)
17
path = "/proc/asound/card0/id"
18
if os.path.exists(path):
20
device = fd.readline().strip()
25
if __name__ == "__main__":
26
sys.exit(main(sys.argv[1:]))