mirror of
https://github.com/love2d/love.git
synced 2026-08-16 16:20:42 +02:00
pull request feedback addressed
newQueueableSource added isQueueable removed, getFreeBufferCount added queueData renamed to queue; added 3 argument variant with (data, offset, length) lightuserdata variant now requires offset (pointer, offset, length, samplerate, bitdepth, channels) setLooping now throws exception if called on queueable source --HG-- branch : minor
This commit is contained in:
@@ -217,12 +217,12 @@ int Source::getChannels() const
|
||||
return 2;
|
||||
}
|
||||
|
||||
bool Source::isQueueable() const
|
||||
int Source::getFreeBufferCount() const
|
||||
{
|
||||
return false;
|
||||
return 0;
|
||||
}
|
||||
|
||||
bool Source::queueData(void *data, int length, int dataSampleRate, int dataBitDepth, int dataChannels)
|
||||
bool Source::queue(void *data, int length, int dataSampleRate, int dataBitDepth, int dataChannels)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -76,8 +76,8 @@ public:
|
||||
virtual float getMaxDistance() const;
|
||||
virtual int getChannels() const;
|
||||
|
||||
virtual bool isQueueable() const;
|
||||
virtual bool queueData(void *data, int length, int dataSampleRate, int dataBitDepth, int dataChannels);
|
||||
virtual int getFreeBufferCount() const;
|
||||
virtual bool queue(void *data, int length, int dataSampleRate, int dataBitDepth, int dataChannels);
|
||||
|
||||
private:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user