217 |
} |
} |
218 |
|
|
219 |
/** |
/** |
220 |
|
* Resets voice variables. Should only be called if rendering process is |
221 |
|
* suspended / not running. |
222 |
|
*/ |
223 |
|
void Voice::Reset() { |
224 |
|
DiskStreamRef.pStream = NULL; |
225 |
|
DiskStreamRef.hStream = 0; |
226 |
|
DiskStreamRef.State = Stream::state_unused; |
227 |
|
DiskStreamRef.OrderID = 0; |
228 |
|
Active = false; |
229 |
|
} |
230 |
|
|
231 |
|
/** |
232 |
* Process the control change event lists of the engine for the current |
* Process the control change event lists of the engine for the current |
233 |
* audio fragment. Event values will be applied to the synthesis parameter |
* audio fragment. Event values will be applied to the synthesis parameter |
234 |
* matrix. |
* matrix. |
371 |
if (DiskVoice && DiskStreamRef.State != Stream::state_unused) { |
if (DiskVoice && DiskStreamRef.State != Stream::state_unused) { |
372 |
pDiskThread->OrderDeletionOfStream(&DiskStreamRef); |
pDiskThread->OrderDeletionOfStream(&DiskStreamRef); |
373 |
} |
} |
374 |
DiskStreamRef.pStream = NULL; |
Reset(); |
|
DiskStreamRef.hStream = 0; |
|
|
DiskStreamRef.State = Stream::state_unused; |
|
|
DiskStreamRef.OrderID = 0; |
|
|
Active = false; |
|
375 |
} |
} |