mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
ported TYPE_QUEUE Source from default to minor
--HG-- branch : minor
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user