repo.or.cz
/
xiph-mirror.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add Russian translation provided by Валерий Крувялис <valkru@mail.ru>
[xiph-mirror.git]
/
ao-python
/
test.py
blob
e9fbec17f02992ebdca1e010cf4bc386445cbbff
1
#!/usr/bin/python
2
3
import
ao
4
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
))
11