Cocoa Port: Update the microphone level once every 4 frames instead of once every 8 frames. This makes the level indicator appear smoother.

This commit is contained in:
rogerman 2022-04-13 17:24:23 -07:00
parent 7c90bc592f
commit 2113af2994
1 changed files with 2 additions and 2 deletions

View File

@ -1263,9 +1263,9 @@ static void* RunCoreThread(void *arg)
avCaptureObject->StreamWriteStart();
}
// Make sure that the mic level is updated at least once every 8 frames, regardless
// Make sure that the mic level is updated at least once every 4 frames, regardless
// of whether the NDS actually reads the mic or not.
if ((ndsFrameInfo.frameIndex & 0x07) == 0x07)
if ((ndsFrameInfo.frameIndex & 0x03) == 0x03)
{
NSAutoreleasePool *tempPool = [[NSAutoreleasePool alloc] init];
inputHandler->ReportAverageMicLevel();