/[svn]/linuxsampler/trunk/src/engines/common/AbstractVoice.h
ViewVC logotype

Diff of /linuxsampler/trunk/src/engines/common/AbstractVoice.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2205 by iliev, Mon Jul 11 17:52:01 2011 UTC revision 2216 by iliev, Mon Jul 25 17:21:16 2011 UTC
# Line 181  namespace LinuxSampler { Line 181  namespace LinuxSampler {
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.

Legend:
Removed from v.2205  
changed lines
  Added in v.2216

  ViewVC Help
Powered by ViewVC