Returns a pointer to the beginning of the currently non-outputted samples. This function is provided for accessing the output samples directly. Please be careful! When using this function to output samples, also remember to 'remove' the outputted samples from the buffer by calling the 'receiveSamples(numSamples)' function
| 152 | // outputted samples from the buffer by calling the |
| 153 | // 'receiveSamples(numSamples)' function |
| 154 | SAMPLETYPE *FIFOSampleBuffer::ptrBegin() |
| 155 | { |
| 156 | assert(buffer); |
| 157 | return buffer + bufferPos * channels; |
| 158 | } |
| 159 | |
| 160 | |
| 161 | // Ensures that the buffer has enought capacity, i.e. space for _at least_ |
no outgoing calls
no test coverage detected