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.
Diff: Music/Music.h
- Revision:
- 5:b9cf407bcc63
- Parent:
- 4:afbf3dd71403
- Child:
- 8:21b6d4dbce44
--- a/Music/Music.h Sat Apr 06 11:47:18 2019 +0000
+++ b/Music/Music.h Sat Apr 06 14:42:34 2019 +0000
@@ -7,7 +7,7 @@
#include "Gamepad.h"
#include "Sprite.h"
#include "Player.h"
-#include "SoundData.h"
+
@@ -16,14 +16,15 @@
public:
Music();
~Music();
- void init(int * data);
+ void init(const int* data,int length);
void play_next();
private:
- int * _data;
+ const int* _data;
int _index;
- PwmOut speaker(PTC10);
+ int _length;
+
};
#endif
\ No newline at end of file