-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathAudioDriver.h
More file actions
39 lines (27 loc) · 1.08 KB
/
AudioDriver.h
File metadata and controls
39 lines (27 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef _AUDIODRIVER_H_
#define _AUDIODRIVER_H_
class PlayerLibSidplay;
class AudioDriver
{
public:
virtual ~AudioDriver() { }
virtual void initialize(PlayerLibSidplay* player, int sampleRate = 44100, int bitsPerSample = 16) = 0;
virtual bool startPlayback() = 0;
virtual void stopPlayback() = 0;
virtual bool startPreRenderedBufferPlayback() = 0;
virtual void stopPreRenderedBufferPlayback() = 0;
virtual void setPreRenderedBuffer(short* inBuffer, int inBufferLength) = 0;
virtual bool getIsPlayingPreRenderedBuffer() = 0;
virtual int getPreRenderedBufferPlaybackPosition() = 0;
virtual void setPreRenderedBufferPlaybackPosition(int inPosition) = 0;
virtual float getVolume() = 0;
virtual void setVolume(float volume) = 0;
virtual float getPreRenderedBufferVolume() = 0;
virtual void setPreRenderedBufferVolume(float volume) = 0;
virtual void setBufferUnderrunDetected(bool flag) = 0;
virtual bool getBufferUnderrunDetected() = 0;
virtual bool getIsPlaying() = 0;
virtual short* getSampleBuffer() = 0;
virtual int getSampleRate() = 0;
};
#endif // _AUDIODRIVER_H_