cleanup
This commit is contained in:
parent
1c8b6fc716
commit
a7566acba3
28
apng_test.py
28
apng_test.py
@ -1,28 +0,0 @@
|
||||
from apng import APNG
|
||||
|
||||
print "image1"
|
||||
|
||||
img = APNG.open("image.apng")
|
||||
|
||||
for png, control in img.frames:
|
||||
print "---------"
|
||||
print control.delay
|
||||
print control.delay_den
|
||||
|
||||
print "image2"
|
||||
|
||||
img = APNG.open("shocked.apng")
|
||||
|
||||
for png, control in img.frames:
|
||||
print "---------"
|
||||
print control.delay
|
||||
print control.delay_den
|
||||
|
||||
print "image3"
|
||||
|
||||
img = APNG.open("(a)mad.apng")
|
||||
|
||||
for png, control in img.frames:
|
||||
print "---------"
|
||||
print control.delay
|
||||
print control.delay_den
|
26
bass_test.py
26
bass_test.py
@ -1,26 +0,0 @@
|
||||
import __builtin__
|
||||
import audio as AUDIO
|
||||
__builtin__.audio = AUDIO
|
||||
del AUDIO
|
||||
from pybass_constants import *
|
||||
|
||||
from urllib2 import Request, urlopen
|
||||
|
||||
audio.init()
|
||||
|
||||
url = 'one_last_dance.mid'
|
||||
music = audio.loadMIDI(False, url, 0, 0, BASS_SAMPLE_LOOP)
|
||||
|
||||
print "Trying to play", url
|
||||
|
||||
if music:
|
||||
audio.sethandleattr(music, BASS_ATTRIB_VOL, 1.0)
|
||||
audio.playhandle(music, False)
|
||||
else:
|
||||
print "Couldn't play music. Error", audio.getbasserror()
|
||||
print "Error?", audio.getbasserror()
|
||||
|
||||
while 1:
|
||||
pass
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user