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

Sound does not stop if update() is delayed #10

Open
mvackel opened this issue Feb 21, 2019 · 5 comments
Open

Sound does not stop if update() is delayed #10

mvackel opened this issue Feb 21, 2019 · 5 comments
Assignees
Labels

Comments

@mvackel
Copy link

mvackel commented Feb 21, 2019

If the update() function is delayed, for instance because of a long process, the sound does not stop.

Suggestion:
Change, from line 122:

	if (!sequenceDuration || (mSequences != 0 && elapsedTime / sequenceDuration >= mSequences))
	{
		mStartTime = 0;
		if (mFinishedCallbackFunction)
		{
			mFinishedCallbackFunction();
		}
		return;
	};

To:

	if (!sequenceDuration || (mSequences != 0 && elapsedTime / sequenceDuration >= mSequences))
	{
		mStartTime = 0;
		if (mFinishedCallbackFunction)
		{
			mFinishedCallbackFunction();
		}
#if defined ESP32
		ledcDetachPin(mPin);
#else
		noTone(mPin);
#endif
		return;
	};
@sixtyfive
Copy link

Spent two hours trying to debug this until I had the idea to come and check for an existing Issue. I guess the fact that it's more than a year old means that the project is abandoned?

@evert-arias
Copy link
Owner

Hi @sixtyfive
I am not actively working on this repository but in the next few days I will be solving this particular issue.

@evert-arias evert-arias self-assigned this Aug 16, 2020
@sixtyfive
Copy link

Thank you for the quick response, Evert, and sorry for the hopefully not too brazen assumption!

@evert-arias
Copy link
Owner

Thank you for the quick response, Evert, and sorry for the hopefully not too brazen assumption!

Not at all 👍

@iqfareez
Copy link

Hi hii. So have any updates on this issue?

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

No branches or pull requests

4 participants