25 #include "common/scummsys.h" 38 int32 currentSampleLeft();
39 int32 currentSampleRight();
41 virtual bool isPlaying()
const = 0;
42 bool isActive()
const;
47 void setData(
const int8 *data, uint32 dataEnd, uint32 dataStart = 0);
48 void setVolume(uint8 vol);
49 void setPanPos(uint8 setPanPos);
50 void setupLoop(uint32 loopStart, uint32 loopLen);
51 void setRate(uint16 rate);
54 virtual void stopInternal() = 0;
71 PCMDevice_Base(
int samplingRate,
int deviceVolume,
int numChannels);
75 void setMusicVolume(uint16 vol);
76 void setSfxVolume(uint16 vol);
77 void setSfxChanMask(
int mask);
79 void readBuffer(int32 *buffer, uint32 bufferSize);
82 const uint32 _intRate;
83 const uint32 _extRate;
84 const int _deviceVolume;
92 const int _numChannels;
Definition: pcm_common.h:69
Definition: pcm_common.h:30