gusimplewhiteboard
wb_sound.h
Go to the documentation of this file.
1
9#ifndef wb_sound_h
10#define wb_sound_h
11
12#include <gu_util.h>
13
18{
19 PROPERTY(uint16_t, frequency)
20
23 PROPERTY(uint16_t, duration)
24
25#ifdef __cplusplus
27 wb_sound() : _frequency(0), _duration(0) {}
28 /* _padding(0) // Not needed I think */
29
31 wb_sound(const wb_sound &other) :
32 _frequency(other._frequency),
33 _duration(other._duration)
34 {}
35
37 wb_sound &operator= (const wb_sound &other) {
38 _frequency = other._frequency;
39 _duration = other._duration;
40 return *this;
41 }
42#endif
43
44};
45#endif //wb_sound_h
/file wb_sound.h
Definition: wb_sound.h:18
wb_sound & operator=(const wb_sound &other)
Assignment Operator.
Definition: wb_sound.h:37
wb_sound(const wb_sound &other)
Copy Constructor.
Definition: wb_sound.h:31
duration wb_sound()
Default constructor.
Definition: wb_sound.h:27
PROPERTY(uint16_t, frequency) PROPERTY(uint16_t
duraiton is milli-seconds