file.seek(pos)

Status
Not open for further replies.
After i dont get any answer to my post " Seek() within a wavefile ??? " I started today to think about it::confused:

I know from this file play_sd_wav.cpp that there are some attributes for playing , stopping etc.

  • bool AudioPlaySdWav::play(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)????
 
Status
Not open for further replies.
Back
Top