Add Russian translation provided by Валерий Крувялис <valkru@mail.ru>
[xiph-mirror.git] / ao-python / test.py
blobe9fbec17f02992ebdca1e010cf4bc386445cbbff
1 #!/usr/bin/python
3 import ao
5 print "Default driver id:", ao.default_driver_id()
6 print "Bigendian?", ao.is_big_endian()
7 dev = ao.AudioDevice(ao.default_driver_id(), bits=16)
8 f = open('test.wav', 'r')
9 data = f.read()
10 dev.play(data, len(data))