~ubuntu-branches/ubuntu/trusty/pyao/trusty

« back to all changes in this revision

Viewing changes to test.py

  • Committer: Bazaar Package Importer
  • Author(s): Christopher L Cheney
  • Date: 2001-11-24 00:40:39 UTC
  • Revision ID: james.westby@ubuntu.com-20011124004039-fr0p82j9cndd0mcy
Tags: 0.8-1
* New upstream. (Closes: #108608, #117234)
* Updated package to be Debian Python Policy compliant.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
import ao
4
4
 
5
 
dev = ao.AudioDevice('wav', bits=16)
 
5
dev = ao.AudioDevice('oss', bits=16)
6
6
f = open('test.wav', 'r')
7
7
data = f.read()
8
8
dev.play(data, len(data))