I saw a reference in a technical answerto a question to closing the WAV file after it is played. I could not find an example of actually doing that in any of the example scripts. Is it necessary and, if so, how is it done?
Second, is there a guide to what functions are available in the various libraries? For instance, I see that you can say "wave.play" and "wave.stop"...is there a list anywhere to show me what you can do with these objects?
WAVE shield, closing files
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: WAVE shield, closing files
This is from the end of loop() in SampleRateHC.pde:Fozzie wrote:I saw a reference in a technical answerto a question to closing the WAV file after it is played. I could not find an example of actually doing that in any of the example scripts. Is it necessary and, if so, how is it done?
Code: Select all
playcomplete(file);
file.close();
Not really. If you look in WaveHC.cpp, each function has a comment block which describes the operation.Fozzie wrote:Second, is there a guide to what functions are available in the various libraries? For instance, I see that you can say "wave.play" and "wave.stop"...is there a list anywhere to show me what you can do with these objects?
-
- Posts: 23
- Joined: Sun Mar 17, 2013 10:53 am
Re: WAVE shield, closing files
Thank you. That will be very helpful.
Please be positive and constructive with your questions and comments.