Skip to content

Cue function not working #28

@Iqwertz

Description

@Iqwertz

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions