Add SoundData:copyFrom

SoundData:copyFrom(src, srcStart, count, dstStart = 0)
This commit is contained in:
Miku AuahDark
2020-09-22 12:06:26 +08:00
parent 26326a01e0
commit e71441d68b
3 changed files with 43 additions and 0 deletions
+2
View File
@@ -61,6 +61,8 @@ public:
float getSample(int i) const;
float getSample(int i, int channel) const;
void copyFrom(const SoundData *src, int srcStart, int count, int dstStart);
private:
void load(int samples, int sampleRate, int bitDepth, int channels, void *newData = 0);