13
0

Remove unused method

This commit is contained in:
Robin Gareus 2019-09-22 04:52:26 +02:00
parent 3ae46256c8
commit a1c48e0a80
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -57,18 +57,6 @@ public:
_written = true; _written = true;
} }
void read_from_with_gain (const Sample* src, samplecnt_t len, gain_t gain, sampleoffset_t dst_offset = 0, sampleoffset_t src_offset = 0) {
assert(src != 0);
assert(_capacity > 0);
assert(len <= _capacity);
src += src_offset;
for (samplecnt_t n = 0; n < len; ++n) {
_data[dst_offset+n] = src[n] * gain;
}
_silent = false;
_written = true;
}
/** Copy samples from src buffer starting at src_offset into self starting at dst_offset /** Copy samples from src buffer starting at src_offset into self starting at dst_offset
* @param src buffer to read from * @param src buffer to read from
* @param len number of samples to copy * @param len number of samples to copy