0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 04:42:18 +02:00

aja: Fix audio capture sometimes offset by a channel

This commit is contained in:
Paul Hindt 2022-06-17 14:18:03 -07:00 committed by Jim
parent 8614697c59
commit e390252540

View File

@ -276,7 +276,7 @@ void AJASource::CaptureThread(AJAThread *thread, void *data)
}
card->ReadAudioLastIn(offsets.currentAddress, audioSystem);
offsets.currentAddress &= ~0x3; // Force DWORD alignment
offsets.currentAddress += 1;
offsets.currentAddress += offsets.readOffset;
if (offsets.currentAddress < offsets.lastAddress) {
offsets.bytesRead =