mirror of
https://github.com/love2d/love.git
synced 2026-08-18 11:44:15 +02:00
Sources are now NOT useless.
This commit is contained in:
@@ -89,9 +89,9 @@ namespace openal
|
||||
return new Music(pool, decoder);
|
||||
}
|
||||
|
||||
love::audio::Source * Audio::newSource()
|
||||
love::audio::Source * Audio::newSource(Audible * audible)
|
||||
{
|
||||
return new Source(pool);
|
||||
return new Source(pool, audible);
|
||||
}
|
||||
|
||||
int Audio::getNumSources() const
|
||||
|
||||
@@ -79,7 +79,7 @@ namespace openal
|
||||
// Implements Audio.
|
||||
love::audio::Sound * newSound(love::sound::SoundData * data);
|
||||
love::audio::Music * newMusic(love::sound::Decoder * decoder);
|
||||
love::audio::Source * newSource();
|
||||
love::audio::Source * newSource(Audible * audible);
|
||||
int getNumSources() const;
|
||||
int getMaxSources() const;
|
||||
void play(love::audio::Source * source);
|
||||
|
||||
Reference in New Issue
Block a user