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:
Alex Szpakowski
2013-12-20 00:20:41 -04:00
parent d0d629a314
commit e6f2d4f1ac
8 changed files with 126 additions and 24 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ Source::~Source()
{
}
love::audio::Source *Source::copy()
love::audio::Source *Source::clone()
{
this->retain();
return this;