79 |
|
|
80 |
virtual int OrderNewStream() { |
virtual int OrderNewStream() { |
81 |
int res = pDiskThread->OrderNewStream ( |
int res = pDiskThread->OrderNewStream ( |
82 |
&DiskStreamRef, pRegion, MaxRAMPos, !RAMLoop |
&DiskStreamRef, pRegion, MaxRAMPos + GetRAMCacheOffset(), !RAMLoop |
83 |
); |
); |
84 |
|
|
85 |
if (res < 0) { |
if (res < 0) { |
90 |
|
|
91 |
return 0; |
return 0; |
92 |
} |
} |
93 |
|
|
94 |
|
/** The offset of the RAM cache from the sample start (in sample units). */ |
95 |
|
virtual int GetRAMCacheOffset() { return 0; } |
96 |
|
|
97 |
/** |
/** |
98 |
* Renders the audio data for this voice for the current audio fragment. |
* Renders the audio data for this voice for the current audio fragment. |