2017-02-26 11:00:41 -05:00
|
|
|
#ifndef __SDLSPEAKER_H
|
|
|
|
#define __SDLSPEAKER_H
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
#include "physicalspeaker.h"
|
|
|
|
|
|
|
|
class SDLSpeaker : public PhysicalSpeaker {
|
|
|
|
public:
|
|
|
|
SDLSpeaker();
|
|
|
|
virtual ~SDLSpeaker();
|
|
|
|
|
2019-02-20 17:49:51 -05:00
|
|
|
virtual void begin();
|
|
|
|
|
2020-08-02 09:06:15 -04:00
|
|
|
virtual void toggle(int64_t c);
|
|
|
|
virtual void maintainSpeaker(int64_t c, uint64_t microseconds);
|
2017-02-26 11:00:41 -05:00
|
|
|
virtual void beginMixing();
|
|
|
|
virtual void mixOutput(uint8_t v);
|
2019-02-20 17:49:51 -05:00
|
|
|
|
2017-02-26 11:00:41 -05:00
|
|
|
private:
|
2018-02-07 10:20:26 -05:00
|
|
|
uint8_t mixerValue;
|
2017-02-26 11:00:41 -05:00
|
|
|
bool toggleState;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|