mirror of
https://github.com/JorjBauer/aiie.git
synced 2024-11-29 01:49:19 +00:00
27 lines
463 B
C++
27 lines
463 B
C++
#ifndef __SDLSPEAKER_H
|
|
#define __SDLSPEAKER_H
|
|
|
|
#include <stdio.h>
|
|
#include <stdint.h>
|
|
#include "physicalspeaker.h"
|
|
|
|
class SDLSpeaker : public PhysicalSpeaker {
|
|
public:
|
|
SDLSpeaker();
|
|
virtual ~SDLSpeaker();
|
|
|
|
virtual void toggle();
|
|
virtual void maintainSpeaker(uint32_t c);
|
|
virtual void beginMixing();
|
|
virtual void mixOutput(uint8_t v);
|
|
private:
|
|
uint32_t mixerValue;
|
|
uint8_t numMixed;
|
|
bool toggleState;
|
|
bool needsToggle;
|
|
|
|
FILE *f;
|
|
};
|
|
|
|
#endif
|