181 |
* Gets the sample cache size in bytes. |
* Gets the sample cache size in bytes. |
182 |
*/ |
*/ |
183 |
virtual unsigned long GetSampleCacheSize() = 0; |
virtual unsigned long GetSampleCacheSize() = 0; |
184 |
|
|
185 |
|
/** |
186 |
|
* Because in most cases we cache part of the sample in RAM, if the |
187 |
|
* offset is too big (will extend beyond the RAM cache if the cache contains |
188 |
|
* the beginning of the sample) we should cache in the RAM buffer not the |
189 |
|
* beginning of the sample but a part that starts from the sample offset point. |
190 |
|
* In that case the current sample position should start from zero (Pos). |
191 |
|
* When the offset fits into RAM buffer or the whole sample is cached |
192 |
|
* in RAM, Pos should contain the actual offset. |
193 |
|
* We don't trim the sample because it might have a defined |
194 |
|
* loop start point before the start point of the playback. |
195 |
|
*/ |
196 |
|
virtual void SetSampleStartOffset(); |
197 |
|
|
198 |
/** |
/** |
199 |
* Returns the correct amplitude factor for the given \a MIDIKeyVelocity. |
* Returns the correct amplitude factor for the given \a MIDIKeyVelocity. |