mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +02:00
Add optional channel parameter to SoundData:getSample/setSample (resolves #1346)
If omitted they work as before, if specified it handles the interleaving internally. --HG-- branch : minor
This commit is contained in:
@@ -57,7 +57,9 @@ public:
|
||||
virtual float getDuration() const;
|
||||
|
||||
void setSample(int i, float sample);
|
||||
void setSample(int i, int channel, float sample);
|
||||
float getSample(int i) const;
|
||||
float getSample(int i, int channel) const;
|
||||
|
||||
private:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user