1 #ifndef __blip_LEDArray_hpp 2 #define __blip_LEDArray_hpp 7 #include <commonc++/ScopedPtr.h++> 38 {
return(_primaryIndex); }
44 {
return(_colorMask); }
103 LEDArray(AudioContext* context, uint32_t deviceID);
105 void checkResult(uint32_t result,
const char* call);
109 ccxx::ScopedPtr<Private> _private;
110 AudioContext* _context;
113 uint_t _primaryIndex;
121 #endif // __blip_LEDArray_hpp uint32_t getActivatedMask()
Get a bitmask which indicates which LEDs are activated and which are deactivated. ...
Definition: LEDArray.cpp:136
A color with red, green, blue, and alpha components.
Definition: Color.hpp:14
void setActivated(uint_t index, bool activated)
Activate or deactivate the LED with the given index.
Definition: LEDArray.cpp:95
Color getColor(uint_t index)
Get the color of the LED with the given index.
Definition: LEDArray.cpp:172
uint_t getPrimaryIndex() const
Get the index of the primary LED.
Definition: LEDArray.hpp:37
WAV file format details at: https://ccrma.stanford.edu/courses/422/projects/WaveFormat/.
Definition: AccelerometerSensorEvent.cpp:3
bool isActivated(uint_t index)
Test if the LED with the given index is activated.
Definition: LEDArray.cpp:113
bool supportsColor(uint_t index) const
Test if the LED with the given index supports changing of its color.
Definition: LEDArray.cpp:84
void setColor(uint_t index, const Color &color)
Set the color of the LED with the given index.
Definition: LEDArray.cpp:150
An audio playback engine.
Definition: AudioEngine.hpp:30
uint_t getCount() const
Get the number of LEDs in the LED array.
Definition: LEDArray.hpp:33
A class representing an LED array.
Definition: LEDArray.hpp:23
uint32_t getColorSupportMask() const
Get a bitmask that indicates which LEDs support changing of their colors.
Definition: LEDArray.hpp:43
void setActivatedMask(uint32_t mask)
Specify which LEDs should be enabled and disabled via a bitmask.
Definition: LEDArray.cpp:125
~LEDArray()
Destructor.
Definition: LEDArray.cpp:41