mirror of
https://github.com/love2d/love.git
synced 2026-08-17 11:00:31 +02:00
Merged default into minor
--HG-- branch : minor
This commit is contained in:
@@ -256,6 +256,17 @@ void Audio::setVelocity(float *v)
|
||||
alListenerfv(AL_VELOCITY, v);
|
||||
}
|
||||
|
||||
void Audio::setDopplerScale(float scale)
|
||||
{
|
||||
if (scale >= 0.0f)
|
||||
alDopplerFactor(scale);
|
||||
}
|
||||
|
||||
float Audio::getDopplerScale() const
|
||||
{
|
||||
return alGetFloat(AL_DOPPLER_FACTOR);
|
||||
}
|
||||
|
||||
void Audio::record()
|
||||
{
|
||||
if (!canRecord()) return;
|
||||
|
||||
@@ -85,6 +85,9 @@ public:
|
||||
void getVelocity(float *v) const;
|
||||
void setVelocity(float *v);
|
||||
|
||||
void setDopplerScale(float scale);
|
||||
float getDopplerScale() const;
|
||||
|
||||
void record();
|
||||
love::sound::SoundData *getRecordedData();
|
||||
love::sound::SoundData *stopRecording(bool returnData);
|
||||
|
||||
Reference in New Issue
Block a user