mirror of
https://github.com/love2d/love.git
synced 2026-08-14 01:20:56 +02:00
Added Source:clone() and love.audio.newSource(source): creates a new (stopped) Source which has all of the settable state of the original.
Static sources don’t duplicate their OpenAL data buffer when cloned (resolves issue #319). Cloned streaming sources also clone the original Decoder.
This commit is contained in:
@@ -36,7 +36,7 @@ Source::~Source()
|
||||
{
|
||||
}
|
||||
|
||||
love::audio::Source *Source::copy()
|
||||
love::audio::Source *Source::clone()
|
||||
{
|
||||
this->retain();
|
||||
return this;
|
||||
|
||||
Reference in New Issue
Block a user