155 void(
const float* inputFrames,
unsigned int& inputFrameCount,
float* outputFrames,
unsigned int& outputFrameCount,
unsigned int frameChannelCount)>;
195 void setPitch(
float pitch);
210 void setPan(
float pan);
223 void setVolume(
float volume);
238 void setSpatializationEnabled(
bool enabled);
280 void setCone(const
Cone& cone);
308 void setDopplerFactor(
float factor);
325 void setDirectionalAttenuationFactor(
float factor);
341 void setRelativeToListener(
bool relative);
358 void setMinDistance(
float distance);
375 void setMaxDistance(
float distance);
389 void setMinGain(
float gain);
403 void setMaxGain(
float gain);
422 void setAttenuation(
float attenuation);
443 [[nodiscard]]
float getPitch() const;
453 [[nodiscard]]
float getPan() const;
463 [[nodiscard]]
float getVolume() const;
473 [[nodiscard]]
bool isSpatializationEnabled() const;
503 [[nodiscard]]
Cone getCone() const;
523 [[nodiscard]]
float getDopplerFactor() const;
533 [[nodiscard]]
float getDirectionalAttenuationFactor() const;
544 [[nodiscard]]
bool isRelativeToListener() const;
554 [[nodiscard]]
float getMinDistance() const;
564 [[nodiscard]]
float getMaxDistance() const;
574 [[nodiscard]]
float getMinGain() const;
584 [[nodiscard]]
float getMaxGain() const;
594 [[nodiscard]]
float getAttenuation() const;
616 virtual
void play() = 0;
627 virtual
void pause() = 0;
639 virtual
void stop() = 0;
647 [[nodiscard]] virtual
Status getStatus() const = 0;
665 [[nodiscard]] virtual
void* getSound() const = 0;
Represents an angle value.
Base class for classes that require an audio device.
Base class defining a sound's properties.
SoundSource(SoundSource &&) noexcept=default
Move constructor.
SoundSource(const SoundSource &)=default
Copy constructor.
std::function< void(const float *inputFrames, unsigned int &inputFrameCount, float *outputFrames, unsigned int &outputFrameCount, unsigned int frameChannelCount)> EffectProcessor
Callable that is provided with sound data for processing.
Status
Enumeration of the sound source states.
Structure defining the properties of a directional cone.
Angle innerAngle
Inner angle.
Angle outerAngle
Outer angle.