Displaying 1 result from an estimated 1 matches for "addblock".
Did you mean:
adblock
2009 Feb 24
0
any help with pyogg and pyvorbis?
...1024
eos = 0
total = 0
while not eos:
data = inwav.readframes(nsamples)
total = total + nsamples
if not data:
vd.write(None)
break
vd.write_wav(data)
#print 100.0 * total / inwav.getnframes()
vb = vd.blockout()
while vb:
vb.analysis()
vb.addblock()
op = vd.bitrate_flushpacket()
while op:
os.packetin(op)
while not eos:
og = os.pageout()
if not og: break
og.writeout(fout)
eos = og.eos()
op = vd.bitrate_flushpacket()
vb...