mirror of https://github.com/snes9xgit/snes9x.git
Wrap around when pushing single samples
This commit is contained in:
parent
33d84d31b8
commit
65d07dc838
|
@ -120,6 +120,8 @@ class Resampler
|
|||
if (end >= buffer_size)
|
||||
end -= buffer_size;
|
||||
buffer[end] = l;
|
||||
if (end + 1 == buffer_size)
|
||||
end -= buffer_size;
|
||||
buffer[end + 1] = r;
|
||||
size += 2;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue