This module is great! Thank you for making it.
Here is a minor glitch I've found: Trying a seek to random positions with a StreamingSound mp3, I get the same output each time...
example file:
from __future__ import print_function
from time import sleep
from random import randint
import swmixer as swmixer
channels = {}
controllers = {}
swmixer.init(samplerate=22050, chunksize=1024, stereo=True)
swmixer.start()
channels["example"] = swmixer.StreamingSound("243546__kb7clx__slow-tune-through-40-meters-from-7000-to-7572-3khz-lsb-3khz-filter.mp3")
controllers["example"] = channels["example"].play(volume=1.0, fadein=90000, loops=-1)
theLength = channels["example"].get_length()
thePosition = randint(0,theLength)
print("USING THIS POSITION: ",thePosition)
controllers["example"].set_position(thePosition)
sleep(500)
I used this sound but have seen this with many other files generated with different encoders. using python2.7
Thanks,
Chris
This module is great! Thank you for making it.
Here is a minor glitch I've found: Trying a seek to random positions with a StreamingSound mp3, I get the same output each time...
example file:
I used this sound but have seen this with many other files generated with different encoders. using python2.7
Thanks,
Chris