Re: Audiogames In _javascript_?
sound_lib is quite easy to use.
Note: untested code ahead.
import sound_lib
from sound_lib import output, stream
o=output.Output()
s=stream.FileStream(file="some random filename")
now it's up to you. Play or modify some properties
, the properties shown here aren't required, but here for demonstration
s.looping=False
s.pan=0 #-1=left, 1=right
s.volume=1.0
you can now either
s.play() #plays the sound normally
s.play_blocking() #play and wait until the sound is done before continuing
Their are many more options, I recommend creating the objects and then using dir. Dir is an extremely helpful function for finding attributes no matter the type, and is a lifesaver for undocumented code. the help function will give the function signature, and doc string if their is one. Also have a look at sound_lib/output.py, stream.py, recording.py, etc depending on what your trying to do.
_______________________________________________ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector