update the acquireDirect API
size_t offset is no more - it is always 0
This commit is contained in:
parent
bc9dd4c2e7
commit
68a550a419
15 changed files with 34 additions and 44 deletions
|
|
@ -77,7 +77,7 @@ void DivPlatformGA20::acquire(short** buf, size_t len) {
|
|||
}
|
||||
}
|
||||
|
||||
void DivPlatformGA20::acquireDirect(blip_buffer_t** bb, size_t off, size_t len) {
|
||||
void DivPlatformGA20::acquireDirect(blip_buffer_t** bb, size_t len) {
|
||||
thread_local short ga20Buf[4];
|
||||
|
||||
for (int i=0; i<4; i++) {
|
||||
|
|
@ -109,7 +109,7 @@ void DivPlatformGA20::acquireDirect(blip_buffer_t** bb, size_t off, size_t len)
|
|||
h+=advance;
|
||||
const int out=(signed int)(ga20Buf[0]+ga20Buf[1]+ga20Buf[2]+ga20Buf[3])>>2;
|
||||
if (out!=oldOut) {
|
||||
blip_add_delta(bb[0],off+h,out-oldOut);
|
||||
blip_add_delta(bb[0],h,out-oldOut);
|
||||
oldOut=out;
|
||||
}
|
||||
for (int i=0; i<4; i++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue