mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Zer sound is wööörking
This commit is contained in:
parent
fc3247805f
commit
d98c2fb34e
|
@ -110,11 +110,12 @@ public:
|
|||
unsigned long filled = 0;
|
||||
while(channels[c].data && filled < frames)
|
||||
{
|
||||
unsigned long to_fill = frames;
|
||||
unsigned long frames_left = (channels[c].data->num_samples - channels[c].tick) >> (channels[c].data->channels-1);
|
||||
unsigned long to_fill = frames>frames_left?frames_left:frames;
|
||||
float dv = 0.0f;
|
||||
|
||||
if(channels[c].stop >= 0)
|
||||
to_fill = (unsigned)channels[c].stop>frames?frames:channels[c].stop;
|
||||
to_fill = (unsigned)channels[c].stop>frames_left?frames:channels[c].stop;
|
||||
if(channels[c].loop >= 0 &&
|
||||
channels[c].data->sustain_start >= 0)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue