Open source Star Ruler 2 source code!
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
#pragma once
|
||||
|
||||
#include "IAudioReference.h"
|
||||
|
||||
#include "SoundTypes.h"
|
||||
|
||||
namespace audio {
|
||||
|
||||
class ISoundDevice;
|
||||
|
||||
class ISoundSource : public IAudioReference {
|
||||
protected:
|
||||
ISoundDevice* device;
|
||||
public:
|
||||
ISoundSource(ISoundDevice* Device);
|
||||
virtual ~ISoundSource();
|
||||
|
||||
virtual int getLength_ms() const = 0;
|
||||
|
||||
virtual bool isStreaming() const = 0;
|
||||
|
||||
virtual void setDefaultVolume(float volume) = 0;
|
||||
virtual float getDefaultVolume() const = 0;
|
||||
|
||||
ISoundDevice* getDevice() const { return device; }
|
||||
};
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user