Move 'sound' module
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
from smnp.library.model import Function
|
||||
from smnp.library.signature import signature, ofType
|
||||
from smnp.type.model import Type
|
||||
|
||||
_signature = signature(ofType(Type.SOUND))
|
||||
def _function(env, sound):
|
||||
sound.value.play()
|
||||
|
||||
|
||||
function = Function(_signature, _function, 'play')
|
||||
@@ -1,10 +0,0 @@
|
||||
from smnp.audio.sound import Sound
|
||||
from smnp.library.model import Function
|
||||
from smnp.library.signature import signature, ofType
|
||||
from smnp.type.model import Type
|
||||
|
||||
_signature = signature(ofType(Type.STRING))
|
||||
def _function(env, file):
|
||||
return Type.sound(Sound(file.value))
|
||||
|
||||
function = Function(_signature, _function, 'Sound')
|
||||
Reference in New Issue
Block a user