player 1
Dependencies: 4DGL-uLCD-SE PinDetect SparkfunAnalogJoystick mbed-rtos mbed SDFileSystem
Fork of 4180FinalLab by
Wireless 2 Player Pong game
soundBuilder.h@0:356124c0bafc, 2014-06-17 (annotated)
- Committer:
- jlind6
- Date:
- Tue Jun 17 20:03:41 2014 +0000
- Revision:
- 0:356124c0bafc
- Child:
- 1:839d22d423bd
Initial Commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jlind6 | 0:356124c0bafc | 1 | #include "Speaker.h" |
jlind6 | 0:356124c0bafc | 2 | |
jlind6 | 0:356124c0bafc | 3 | class Note |
jlind6 | 0:356124c0bafc | 4 | { |
jlind6 | 0:356124c0bafc | 5 | public: |
jlind6 | 0:356124c0bafc | 6 | |
jlind6 | 0:356124c0bafc | 7 | private: |
jlind6 | 0:356124c0bafc | 8 | float freq; |
jlind6 | 0:356124c0bafc | 9 | float length; |
jlind6 | 0:356124c0bafc | 10 | float volume; |
jlind6 | 0:356124c0bafc | 11 | }; |
jlind6 | 0:356124c0bafc | 12 | |
jlind6 | 0:356124c0bafc | 13 | class SoundBuilder |
jlind6 | 0:356124c0bafc | 14 | { |
jlind6 | 0:356124c0bafc | 15 | public: |
jlind6 | 0:356124c0bafc | 16 | // Set Sounds |
jlind6 | 0:356124c0bafc | 17 | // Set Songs |
jlind6 | 0:356124c0bafc | 18 | // Play Sounds |
jlind6 | 0:356124c0bafc | 19 | // Play Songs |
jlind6 | 0:356124c0bafc | 20 | // Clear Songs |
jlind6 | 0:356124c0bafc | 21 | |
jlind6 | 0:356124c0bafc | 22 | private: |
jlind6 | 0:356124c0bafc | 23 | Note song[20]; |
jlind6 | 0:356124c0bafc | 24 | Speaker *speaker; |
jlind6 | 0:356124c0bafc | 25 | |
jlind6 | 0:356124c0bafc | 26 | }; |