removed deactivation time from sounds
This commit is contained in:
@@ -35,14 +35,12 @@ public:
|
||||
u_int id;
|
||||
|
||||
public:
|
||||
Sound(std::shared_ptr<SoundBoardPinController> pin_controller, const uint8_t & address, const std::string & name, const std::chrono::milliseconds & deactivation_time, const u_int id);
|
||||
Sound(std::shared_ptr<SoundBoardPinController> pin_controller, const uint8_t & address, const std::string & name, const u_int id);
|
||||
~Sound() override = default;
|
||||
|
||||
void play() override;
|
||||
|
||||
private:
|
||||
const std::chrono::milliseconds deactivation_time;
|
||||
|
||||
const std::shared_ptr<SoundBoardPinController> pin_controller;
|
||||
|
||||
std::future<void> play_task;
|
||||
|
||||
Reference in New Issue
Block a user