121 |
if (DiskVoice) { |
if (DiskVoice) { |
122 |
// check if we reached the allowed limit of the sample RAM cache |
// check if we reached the allowed limit of the sample RAM cache |
123 |
if (finalSynthesisParameters.dPos > MaxRAMPos) { |
if (finalSynthesisParameters.dPos > MaxRAMPos) { |
124 |
dmsg(5,("Voice: switching to disk playback (Pos=%f)\n", finalSynthesisParameters.dPos)); |
dmsg(5,("VoiceBase: switching to disk playback (Pos=%f)\n", finalSynthesisParameters.dPos)); |
125 |
this->PlaybackState = Voice::playback_state_disk; |
this->PlaybackState = Voice::playback_state_disk; |
126 |
} |
} |
127 |
} else if (finalSynthesisParameters.dPos >= pSample->GetCache().Size / SmplInfo.FrameSize) { |
} else if (finalSynthesisParameters.dPos >= pSample->GetCache().Size / SmplInfo.FrameSize) { |
175 |
break; |
break; |
176 |
|
|
177 |
case Voice::playback_state_end: |
case Voice::playback_state_end: |
178 |
std::cerr << "gig::Voice::Render(): entered with playback_state_end, this is a bug!\n" << std::flush; |
std::cerr << "VoiceBase::Render(): entered with playback_state_end, this is a bug!\n" << std::flush; |
179 |
break; |
break; |
180 |
} |
} |
181 |
|
|