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:
Bart van Strien
2017-10-04 13:56:14 +02:00
parent 9e4374935d
commit ac12424bab
4 changed files with 59 additions and 5 deletions
+2
View File
@@ -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: