Audio file utilities for OMDE/pmask.
XXX: Not very portable!
You need to have 'sfinfo' installed in your system to use file_length().
You need a player (default is 'aplay') to use play().
- Return the file length in seconds.
You need 'sfinfo' installed in your system.
- find(SSDIR, name)
- Find a file in a set of pathnames.
SSDIR is a list of file names.
Raise IOError if the file is not found in any
of the specified paths.
- Return the minimum power-of-two size of a table
of size n.
- Play a file.
You need a player (default is 'aplay').
- Set the audio player command template.
You can use '%s' in place of the file name.
||__file__ = '/usr/local/lib/python2.1/site-packages/omde/audio.pyc'|
__name__ = 'omde.audio'
_player = 'aplay %s'