Example

The following Python program illustrates how you can easily use the IzSound Python bindings.

#!/usr/bin/env python

import sys
import izsound

try:
    ogg = izsound.OggFileDecoder(sys.argv[1])
    oss = izsound.OssOutput()
    flg = izsound.Flanger()
except:
    print "ooops"
    sys.exit(0)

ogg.connect(flg, 0, 0)
flg.connect(oss, 0, 0)
while not ogg.isEndReached():
    ogg.run()
oss.flush()