Skip to content

Cue function not working #28

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

Closed
Iqwertz opened this issue Dec 25, 2020 · 3 comments
Closed

Cue function not working #28

Iqwertz opened this issue Dec 25, 2020 · 3 comments
Labels
conclusion: resolved Issue was resolved topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@Iqwertz
Copy link
Contributor

Iqwertz commented Dec 25, 2020

Don't know if I understood the cue() feature correct, but shouldnt it play a Song from the given time on? When I call it, it only replays the song from beginning!

Thats a part of my code:

void audioCue(int t){
  if(t>0 && t<currentAudioFile.duration()){
    currentAudioFile.cue(t);
    Serial.println("Set playback to:");
    Serial.println(currentAudioFile.currentTime());
  }else{
    Serial.println("Cued Time not valid");
  }
}

currentAudioFile is a global var holding the currently played wav file (type: SDWaveFile)

@Iqwertz
Copy link
Contributor Author

Iqwertz commented Dec 26, 2020

I looked into the code and it seems that there are a view errors! I listed them in this Forum Post: https://forum.arduino.cc/index.php?topic=720007.msg4837911#msg4837911

@Iqwertz
Copy link
Contributor Author

Iqwertz commented Dec 26, 2020

Okay because I am impatient! I fixed the code and created a Pull request. Please review the request and if accepted I will close this issue!

@aentinger
Copy link
Contributor

Fixed by #29 -

@per1234 per1234 added type: imperfection Perceived defect in any part of project conclusion: resolved Issue was resolved topic: code Related to content of the project itself labels Jun 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: resolved Issue was resolved topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

3 participants