aiie/physicalspeaker.h

20 lines
368 B
C
Raw Permalink Normal View History

#ifndef __PHYSICALSPEAKER_H
#define __PHYSICALSPEAKER_H
#include <stdint.h>
class PhysicalSpeaker {
public:
virtual ~PhysicalSpeaker() {}
2019-02-20 22:49:51 +00:00
virtual void begin() = 0;
2020-08-02 13:06:15 +00:00
virtual void toggle(int64_t c) = 0;
virtual void maintainSpeaker(int64_t c, uint64_t microseconds) = 0;
2017-02-24 15:15:17 +00:00
virtual void beginMixing() = 0;
virtual void mixOutput(uint8_t v) = 0;
};
#endif