Open source Star Ruler 2 source code!

This commit is contained in:
Lucas de Vries
2018-07-17 14:15:37 +02:00
commit cc307720ff
4342 changed files with 2365070 additions and 0 deletions
+28
View File
@@ -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; }
};
};