WAVE shield, closing files

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
Fozzie
 
Posts: 23
Joined: Sun Mar 17, 2013 10:53 am

WAVE shield, closing files

Post by Fozzie »

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?

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: WAVE shield, closing files

Post by adafruit_support_rick »

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?
This is from the end of loop() in SampleRateHC.pde:

Code: Select all

    playcomplete(file);
    file.close();    
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?
Not really. If you look in WaveHC.cpp, each function has a comment block which describes the operation.

Fozzie
 
Posts: 23
Joined: Sun Mar 17, 2013 10:53 am

Re: WAVE shield, closing files

Post by Fozzie »

Thank you. That will be very helpful.

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino Shields from Adafruit”