We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
I found myself unable to seek forward into a track because I was unable to figure out what time I was currently playing.
I made the fPosition function public. And came up with this seek code to seek x second forward into the song.
void aseek(int stime) { if(audio.isPlaying()) { unsigned long cur = audio.fPosition(); unsigned long cursec = cur / sample_rate; audio.stopPlayback(); char file_name[20] = ""; itoa(play_number,file_name,10); strcat(file_name,".wav"); int ftime = cursec + stime; #ifdef AR_DEBUG Serial.println(ftime); #endif audio.play(file_name, ftime); } }
Just wanted to let you know my solution. Not really an issue.
The text was updated successfully, but these errors were encountered:
Thanks for the contribution, I will mark this as an enhancement, and if I ever get a chance, will think about incorporating it into the library.
Sorry, something went wrong.
No branches or pull requests
I found myself unable to seek forward into a track because I was unable to figure out what time I was currently playing.
I made the fPosition function public. And came up with this seek code to seek x second forward into the song.
void aseek(int stime) {
if(audio.isPlaying()) {
unsigned long cur = audio.fPosition();
unsigned long cursec = cur / sample_rate;
audio.stopPlayback();
char file_name[20] = "";
itoa(play_number,file_name,10);
strcat(file_name,".wav");
int ftime = cursec + stime;
#ifdef AR_DEBUG
Serial.println(ftime);
#endif
audio.play(file_name, ftime);
}
}
Just wanted to let you know my solution. Not really an issue.
The text was updated successfully, but these errors were encountered: