ocarina/tests/audio.py
Bryan Schumaker 25a0d0be9f Added audio functions
I have reworked the gstreamer functions from Ocarina 4.0 and combined
everything into one file.  I have also created an audio test that plays
a song from my library.
2010-08-07 19:39:46 -04:00

25 lines
422 B
Python

# Bryan Schumaker (8/7/2010)
from libsaria import music
path = "~/Music/Eagles/Hotel California.mp3"
music.load(path)
raw_input("Press ENTER to play ... ")
music.play()
raw_input("Press ENTER to pause ... ")
music.pause()
raw_input("Press ENTER to play ... ")
music.play()
raw_input("Press ENTER to stop ... ")
music.stop()
raw_input("Press ENTER to play ... ")
music.play()
raw_input("Press ENTER to quit ... ")