Returns a pointer to the end of the used part of the sample buffer (i.e. where the new samples are to be inserted). This function may be used for inserting new samples into the sample buffer directly. Please be careful! Parameter 'slackCapacity' tells the function how much free capacity (in terms of samples) there _at least_ should be, in order to the caller to succesfully insert all the required
| 138 | // to increase the sample count afterwards, by calling the |
| 139 | // 'putSamples(numSamples)' function. |
| 140 | SAMPLETYPE *FIFOSampleBuffer::ptrEnd(uint slackCapacity) |
| 141 | { |
| 142 | ensureCapacity(samplesInBuffer + slackCapacity); |
| 143 | return buffer + samplesInBuffer * channels; |
| 144 | } |
| 145 | |
| 146 | |
| 147 | // Returns a pointer to the beginning of the currently non-outputted samples. |
no outgoing calls
no test coverage detected