-
-
Notifications
You must be signed in to change notification settings - Fork 52
.cue() cannot be called very quickly in 2.2.2. It works as intended in 2.2.1, however. #40
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
Comments
Thanks for reporting! Hmm not entirely sure why this is happening. Does your code rely on other calls to If every one of your calls to If it also doesn't work using Many thanks! |
Not a prob.
I actually forgot to mention that Here's the relevant code, minus the animation stuff:
|
@bpeterson37 sorry it took a while longer but I think I've got it sussed out, could you do me a favour and try installing the following sound library test build to see if it fixes your issue? https://github.com/processing/processing-sound/releases/download/v2.2.3/sound.zip I also fixed a small issue with |
Hey, sorry for stepping in but: I had a similar issue with 2.2.2, but in a variation: I have installed your 2.2.3 fix and it seems to work perfectly. Thanks! |
@csongorb thanks for trying out the test build! v2.2.3 is now also published under the 'latest' tag, so the fixes should become available for everyone through the Contribution Manager over the next couple of days... |
In order to sync each frame of an animation with a sound in the background, I had been using the following code in draw():
frmrate was set to 30 or 60, depending on my desired output framerate.
2.2.1 was able to call this successfully each time draw() was called, allowing me to save each frame as it was updated by the sound.
When I updated to 2.2.2, however, it seems as though .cue() would only work occasionally. Instead of a consistent choppiness (it's syncing 30 - 60 times a second, after all), I would see no response and hear no sound until the occasional blip. Another might follow a few seconds later. This seemed to happen at random, but did seem to be following along with the sound, though it was not able to consistently draw and play it audibly.
I noticed also that I could not call .cue() in setup() either. It would result in a silent and empty frame unless I also called .play() in draw(),
like so...
...in spite of already having called it in setup(). Calling .cue() then .play() in setup worked perfectly well in 2.2.1, but would not work in 2.2.2 for some reason. .cue() could be called in draw(), but not every frame, like it was able to do in 2.2.1.
Honestly, I'm surprised this issue hasn't been brought up yet. It seems like that's some pretty basic .cue() functionality, right?
I tried reinstalling 2.2.2, restarting the computer, and reinstalling Processing (not necessarily in that order). No improvement. Once I reinstalled 2.2.1, everything worked as intended again.
The text was updated successfully, but these errors were encountered: