-
-
Notifications
You must be signed in to change notification settings - Fork 309
Delay using SelectStream to change track on FLAC player. #2163
-
Hi @pschatzmann.
I've implemented SD_MMC now FLAC plays well. I ́m using AudioSourceIdxSDMMC source.
I ́ve observed a delay stepping some files when I use source.selectStream(..) to change track. Is possible to know when source.SelectStream has finished?
I undestand that selectStream try to search the track that I ́ve indicated and that process required a concrete time. if I start to player.COPY without selectStream process finished, player freezed.
Any idea for solution?
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions
What error messages or warnings would you get in the Log when it is failing ?
I added some more error checks to the SDIndex class
Replies: 3 comments 2 replies
-
Hi again.
The problem was in player.begin(..) I ́ve added this code that works fine with FLACs where files are very big,
while(!player.begin(currentIdx)){}
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions
-
Don't forget to set setupIndex to false in the AudioSourceIdxSDMMC constructor, when you don't need to rebuild the index.
This should avoid the initial delay when rebuilding the index...
Beta Was this translation helpful? Give feedback.
All reactions
-
Appears that the problem is in player.begin() I'm waiting until player.begin is true but sometimes freez the player. This issue only occurs in FLAC player with 30Mb around file size.
I'm going to set setupIndex to false.
Beta Was this translation helpful? Give feedback.
All reactions
-
What error messages or warnings would you get in the Log when it is failing ?
I added some more error checks to the SDIndex class
Beta Was this translation helpful? Give feedback.
All reactions
-
Any error. Only delay sometimes playing FLAC files using player.begin(..) without review if .begin finished. If begin is reviewed there is not problem.
Beta Was this translation helpful? Give feedback.