statescriptMP

Dependencies:   SMARTWAV USBDevice mbed

Committer:
alustig3
Date:
Mon May 18 01:18:45 2015 +0000
Revision:
0:9d97f34c6f46
statescript MP

Who changed what in which revision?

UserRevisionLine numberNew contents of line
alustig3 0:9d97f34c6f46 1 #include "mbed.h"
alustig3 0:9d97f34c6f46 2 #include "SMARTWAV.h"
alustig3 0:9d97f34c6f46 3 #include <stdint.h>
alustig3 0:9d97f34c6f46 4 #include <string.h>
alustig3 0:9d97f34c6f46 5 #include <string>
alustig3 0:9d97f34c6f46 6 #include <vector>
alustig3 0:9d97f34c6f46 7 #include <queue>
alustig3 0:9d97f34c6f46 8
alustig3 0:9d97f34c6f46 9
alustig3 0:9d97f34c6f46 10 class soundControl {
alustig3 0:9d97f34c6f46 11
alustig3 0:9d97f34c6f46 12 public:
alustig3 0:9d97f34c6f46 13 soundControl(void);
alustig3 0:9d97f34c6f46 14 void setFile(string fileNameIn);
alustig3 0:9d97f34c6f46 15 void setVolume(int* volumeIn);
alustig3 0:9d97f34c6f46 16 void setVolume(int volumeIn);
alustig3 0:9d97f34c6f46 17 void setPlayback(bool playIn);
alustig3 0:9d97f34c6f46 18 void setReset();
alustig3 0:9d97f34c6f46 19 void execute();
alustig3 0:9d97f34c6f46 20
alustig3 0:9d97f34c6f46 21 private:
alustig3 0:9d97f34c6f46 22 char fileName[21];
alustig3 0:9d97f34c6f46 23 bool fileNameExists;
alustig3 0:9d97f34c6f46 24 int* volumePtr;
alustig3 0:9d97f34c6f46 25 int volume;
alustig3 0:9d97f34c6f46 26 bool play;
alustig3 0:9d97f34c6f46 27 bool reset;
alustig3 0:9d97f34c6f46 28
alustig3 0:9d97f34c6f46 29
alustig3 0:9d97f34c6f46 30 };