Forum Rule: Always post complete source code & details to reproduce any issue!
-
file.seek(pos)
After i dont get any answer to my post " Seek() within a wavefile ??? " I started today to think about it:
I know from this file play_sd_wav.cpp that there are some attributes for playing , stopping etc.
- bool AudioPlaySdWav:
lay(const char *filename) {} - void AudioPlaySdWav::stop(void) { }
i know from the Simple WAV file player example that i can acces to this Attributes :
- playWav1.play(filename);
- playWav1.stop();
I know that the Teensy Audio Libray is using the Class SD.h .
I know that the SD.h has this here implemented: https://www.arduino.cc/en/Reference/FileSeek
- file.seek(pos)
- Parameters
- file: an instance of the File class (returned by SD.open())
- pos: the position to which to seek (unsigned long)
My question : Can i used this file.seek(pos) on the top or should i write a new attribute with in play_sd_wav.cpp using this file.seek(pos)????
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules