NINTV-DS/arm9/source/emucore/AudioProducer.h
2021-09-02 17:32:31 -04:00

27 lines
426 B
C++

#ifndef AUDIOPRODUCER_H
#define AUDIOPRODUCER_H
#include "AudioOutputLine.h"
/**
* This interface is implemented by any piece of hardware that produces audio.
*/
class AudioProducer
{
friend class AudioMixer;
public:
AudioProducer() : audioOutputLine(NULL) {}
virtual INT32 getClockSpeed() = 0;
virtual INT32 getClocksPerSample() = 0;
protected:
AudioOutputLine* audioOutputLine;
};
#endif