<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Recording a wave file</title><link>https://sourceforge.net/p/wavepro/wiki/Recording%2520a%2520wave%2520file/</link><description>Recent changes to Recording a wave file</description><atom:link href="https://sourceforge.net/p/wavepro/wiki/Recording%20a%20wave%20file/feed" rel="self"/><language>en</language><lastBuildDate>Tue, 06 Nov 2012 12:20:51 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/wavepro/wiki/Recording%20a%20wave%20file/feed" rel="self" type="application/rss+xml"/><item><title>WikiPage Recording a wave file modified by Majenko Technologies</title><link>https://sourceforge.net/p/wavepro/wiki/Recording%2520a%2520wave%2520file/</link><description>&lt;pre&gt;--- v1
+++ v2
@@ -1,5 +1,32 @@
 Record a 5 second snipped of sound, then play pack that snippet.  Repeat forever.
 
+~~~~~
+:::C++
+// The WavePro uses SPI, so you need to include the
+// SPI library first.
+#include &lt;SPI.h&gt;
+#include &lt;WavePro.h&gt;
 
+void setup()
+{
+    // Start up and configure the board
+    WavePro.begin();
+}
+
+void loop()
+{
+    // Start recording
+    WavePro.record(REC_11025 | REC_STEREO, "REC.WAV");
+    
+    // And stop after 5 seconds
+    delay(5000);
+    WavePro.stop();
+
+    // Now play it
+    WavePro.play("REC.WAV");
+    while(WavePro.playing())
+        delay(500);
+}
+~~~~~
 ----
 Part of: [Examples]
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Majenko Technologies</dc:creator><pubDate>Tue, 06 Nov 2012 12:20:51 -0000</pubDate><guid>https://sourceforge.netffe5543e5f5a3c19d05e6ff46110e767592a2bc4</guid></item><item><title>WikiPage Recording a wave file modified by Majenko Technologies</title><link>https://sourceforge.net/p/wavepro/wiki/Recording%2520a%2520wave%2520file/</link><description>Record a 5 second snipped of sound, then play pack that snippet.  Repeat forever.


----
Part of: [Examples]</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Majenko Technologies</dc:creator><pubDate>Tue, 06 Nov 2012 12:18:37 -0000</pubDate><guid>https://sourceforge.netbe4904440a4edcdc5b39d35ecede5e3e24cef0d8</guid></item></channel></rss>