Change file position #74
-
Hi Phil , I wanted to control the file position from which audio is played from the SD card. I am using AudioPlayer.h. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Just get the actual Stream: This can be casted to a file on which you can do any file operations like lseek... ps you posted this to the wrong project. The audio player is part of the AudioTools and you need to check the class documentation that you can find there! As an alternative you can implement your own AudioSource (or by using the AudioSourceCallback class) |
Beta Was this translation helpful? Give feedback.
Just get the actual Stream: This can be casted to a file on which you can do any file operations like lseek...
ps you posted this to the wrong project. The audio player is part of the AudioTools and you need to check the class documentation that you can find there!
As an alternative you can implement your own AudioSource (or by using the AudioSourceCallback class)