mirror of
https://github.com/love2d/love.git
synced 2026-08-18 11:44:15 +02:00
Added looping in love.audio (though needs implementation in love.sound).
This commit is contained in:
@@ -58,12 +58,16 @@ namespace openal
|
||||
source = pool->find(s);
|
||||
|
||||
if(source)
|
||||
{
|
||||
alSourcei(source, AL_BUFFER, buffer);
|
||||
alSourcei(source, AL_LOOPING, s->isLooping() ? AL_TRUE : AL_FALSE);
|
||||
}
|
||||
}
|
||||
|
||||
void Sound::update(love::audio::Source * s)
|
||||
{
|
||||
// No need.
|
||||
// Looping mode could have changed.
|
||||
alSourcei(source, AL_LOOPING, s->isLooping() ? AL_TRUE : AL_FALSE);
|
||||
}
|
||||
|
||||
void Sound::stop(love::audio::Source * s)
|
||||
|
||||
Reference in New Issue
Block a user