SoundHandle interface.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#pragma once
|
||||
#include <cstdint>
|
||||
#include <ReMixer/Frequency.hpp>
|
||||
|
||||
namespace ReMixer {
|
||||
enum class SampleFormat {
|
||||
@@ -22,6 +23,7 @@ namespace ReMixer {
|
||||
}
|
||||
|
||||
static AudioFormat StereoFloat48kHz() {
|
||||
using namespace ReMixer::FrequencyLiterals;
|
||||
return StereoFloat(48_kHz);
|
||||
}
|
||||
};
|
||||
|
@@ -6,6 +6,41 @@ namespace ReMixer {
|
||||
public:
|
||||
protected:
|
||||
SoundHandle(const Sound& sound);
|
||||
|
||||
|
||||
void Pitch(float pitch);
|
||||
void Pan(float pan);
|
||||
void Volume(float volume);
|
||||
void SpatializationEnabled(bool enabled);
|
||||
//void SetPosition(const Vector3& position);
|
||||
//void SetDirection(const Vector3& direction);
|
||||
//void SetCone(const Cone& cone);
|
||||
//void SetVelocity(const Vector3& velocity);
|
||||
void DopplerFactor(float factor);
|
||||
void DirectionalAttenuationFactor(float factor);
|
||||
void RelativeToListener(bool relative);
|
||||
void MinDistance(float distance);
|
||||
void MaxDistance(float distance);
|
||||
void MinGain(float gain);
|
||||
void MaxGain(float gain);
|
||||
void Attenuation(float attenuation);
|
||||
|
||||
float Pitch() const;
|
||||
float Pan() const;
|
||||
float Volume() const;
|
||||
bool SpatializationEnabled() const;
|
||||
//Vector3 Position() const;
|
||||
//Vector3 Direction() const;
|
||||
//Cone Cone() const;
|
||||
//Vector3 Velocity() const;
|
||||
float DopplerFactor() const;
|
||||
float DirectionalAttenuationFactor() const;
|
||||
bool RelativeToListener() const;
|
||||
float MinDistance() const;
|
||||
float MaxDistance() const;
|
||||
float MinGain() const;
|
||||
float MaxGain() const;
|
||||
float Attenuation() const;
|
||||
private:
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user