1

Hello
I recently used sound_lib in a python project of mine in order to play sounds.
It works perfectly fine, with no errors, when it is in its raw, .py form. When I use pyinstaller on it though, and copy in the folder sound_lib, or even when it is just run on its own with no --onefile attached, I get the following error:
Error: the sample buffer was lost.

My code for doing this is below:
    handle=stream.FileStream(file=full)
    lastplayed=full
    handle.looping=False
    global volume
    handle.set_volume(volume/100)
    handle.play()

Thanks for any help you can provide

Nathan Smith
Managing Director of Nathan Tech
It's not disability
It's ability!

Thumbs up