mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Rename love.audio.getSourceCount to getActiveSourceCount and deprecate the old function (resolves issue #1302).
--HG-- branch : minor
This commit is contained in:
@@ -56,7 +56,7 @@ love::audio::Source *Audio::newSource(int, int, int, int)
|
||||
return new Source();
|
||||
}
|
||||
|
||||
int Audio::getSourceCount() const
|
||||
int Audio::getActiveSourceCount() const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@ public:
|
||||
love::audio::Source *newSource(love::sound::Decoder *decoder);
|
||||
love::audio::Source *newSource(love::sound::SoundData *soundData);
|
||||
love::audio::Source *newSource(int sampleRate, int bitDepth, int channels, int buffers);
|
||||
int getSourceCount() const;
|
||||
int getActiveSourceCount() const;
|
||||
int getMaxSources() const;
|
||||
bool play(love::audio::Source *source);
|
||||
bool play(const std::vector<love::audio::Source*> &sources);
|
||||
|
||||
Reference in New Issue
Block a user