ported TYPE_QUEUE Source from default to minor

--HG--
branch : minor
This commit is contained in:
raidho36
2016-10-11 06:30:30 +03:00
parent e969f541ba
commit 7934bfaf7f
15 changed files with 432 additions and 112 deletions
+5
View File
@@ -51,6 +51,11 @@ love::audio::Source *Audio::newSource(love::sound::SoundData *)
return new Source();
}
love::audio::Source *Audio::newSource(int sampleRate, int bitDepth, int channels)
{
return new Source();
}
int Audio::getSourceCount() const
{
return 0;
+1
View File
@@ -46,6 +46,7 @@ public:
// Implements Audio.
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 getSourceCount() const;
int getMaxSources() const;
bool play(love::audio::Source *source);
+11
View File
@@ -217,6 +217,17 @@ int Source::getChannels() const
return 2;
}
bool Source::isQueueable() const
{
return false;
}
void Source::queueData(void *data, int length, int dataSampleRate, int dataBitDepth, int dataChannels)
{
return;
}
} // null
} // audio
} // love
+3
View File
@@ -76,6 +76,9 @@ public:
virtual float getMaxDistance() const;
virtual int getChannels() const;
virtual bool isQueueable() const;
virtual void queueData(void *data, int length, int dataSampleRate, int dataBitDepth, int dataChannels);
private:
float pitch;