mirror of
https://github.com/wavemotion-dave/NINTV-DS.git
synced 2025-06-18 13:55:33 -04:00
27 lines
426 B
C++
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
|