Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Capacitive_Touch_Sensor_MP3_Player
Fork of wave_player by
Diff: wave_player.h
- Revision:
- 1:acc3e18e77ad
- Parent:
- 0:62c18ade9a60
- Child:
- 2:87acbc2d0023
diff -r 62c18ade9a60 -r acc3e18e77ad wave_player.h
--- a/wave_player.h Tue Jan 18 03:41:02 2011 +0000
+++ b/wave_player.h Tue Jan 18 03:57:27 2011 +0000
@@ -9,10 +9,17 @@
short sig_bps;
} FMT_STRUCT;
-/** wave file player class, taking a pointer to an AnalogOut object.
+
+/** wave file player class.
*
* Example:
* @code
+ * #include <mbed.h>
+ * #include <wave_player.h>
+ *
+ * AnalogOut DACout(p18);
+ * wave_player waver(&DACout);
+ *
* int main() {
* FILE *wave_file;
*
@@ -28,7 +35,7 @@
public:
/** Create a wave player using a pointer to the given AnalogOut object.
*
- * @param dac AnalogOut object to which the samples are sent.
+ * @param _dac pointer to an AnalogOut object to which the samples are sent.
*/
wave_player(AnalogOut *_dac);
@@ -62,6 +69,4 @@
short DAC_on;
};
-//void play_wave(FILE *wavefile,AnalogOut *dac);
-//void dac_out();
