Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Playing .ogg files from SfReader produces corrupted sound #185

Open
jacksongoode opened this issue Aug 18, 2020 · 1 comment
Open

Playing .ogg files from SfReader produces corrupted sound #185

jacksongoode opened this issue Aug 18, 2020 · 1 comment

Comments

@jacksongoode
Copy link

jacksongoode commented Aug 18, 2020

I was just testing playback with .ogg files and its playback would commonly become corrupted halfway through playback.

I isolated some code to test this out. All of the .ogg files in the directory are playable by other media players. So, to test I would just fill a directory with a few .oggs.

import os
from pyo import *

src = 'sounds/'
file_list = sorted(os.listdir(src))
fl = [snd for snd in file_list if '.ogg' in snd]

s = Server()
s.deactivateMidi()
s.boot()

player = SfPlayer('sounds/empty.ogg', speed=1, mul=.5).out()

s.start()
try:
    for i in range(len(fl)):
        player.stop()

        player.setPath(src+fl[i])
        player.out()

        dur = sndinfo(src+fl[i])[1]
        time.sleep(dur)
    s.stop()
@jacksongoode
Copy link
Author

Any follow up on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant