27 lines
401 B
Python
27 lines
401 B
Python
# Bryan Schumaker (11/23/2010)
|
|
|
|
audio = None
|
|
call = None
|
|
invite = None
|
|
|
|
def init():
|
|
global call
|
|
global audio
|
|
global invite
|
|
|
|
import libsaria
|
|
call = libsaria.event.call
|
|
invite = libsaria.event.invite
|
|
|
|
from audio import audio
|
|
invite("PREEOS", pause)
|
|
|
|
def play():
|
|
return call("PLAY", audio.play)
|
|
|
|
def pause():
|
|
return call("PAUSE", audio.pause)
|
|
|
|
def stop():
|
|
return call("STOP", audio.stop)
|