
#pragma once

#include "ofConstants.h"



//----------------------------------------------------------
// ofBaseSoundPlayer
//----------------------------------------------------------
class ofBaseSoundPlayer {
	
public:
	
	ofBaseSoundPlayer(){};
	virtual ~ofBaseSoundPlayer(){};
	
	virtual void loadSound(string fileName, bool stream = false) = 0;
	virtual void unloadSound() = 0;
	virtual void play() = 0;
	virtual void stop() = 0;
	
	virtual void setVolume(float vol) = 0;
	virtual void setPan(float vol) = 0;
	virtual void setSpeed(float spd) = 0;
	virtual void setPaused(bool bP) = 0;
	virtual void setLoop(bool bLp) = 0;
	virtual void setMultiPlay(bool bMp) = 0;
	virtual void setPosition(float pct) = 0; // 0 = start, 1 = end;
	
	virtual float getPosition() = 0;
	virtual bool getIsPlaying() = 0;
	virtual float getSpeed() = 0;
	virtual float getPan() = 0;
	
};
