aiie/sdl/sdl-speaker.h

26 lines
467 B
C
Raw Normal View History

#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 22:49:51 +00:00
virtual void begin();
2020-08-02 13:06:15 +00:00
virtual void toggle(int64_t c);
virtual void maintainSpeaker(int64_t c, uint64_t microseconds);
virtual void beginMixing();
virtual void mixOutput(uint8_t v);
2019-02-20 22:49:51 +00:00
private:
uint8_t mixerValue;
bool toggleState;
};
#endif