AndroidMic icon indicating copy to clipboard operation
AndroidMic copied to clipboard

Duplicate mutex in Android

Open graycatdeveloper opened this issue 1 year ago • 1 comments

Why do you need a copy of mutex in AudioBuffer on Android, if it is native? The call will be blocked anyway. And it's easier to make static mutex for thread safety.

graycatdeveloper avatar Nov 09 '23 09:11 graycatdeveloper

Yea I see your point. It's more like a personal preference. Is there any performance related issues if I'm not making it static? I assume oboe will prevent recording start twice so there'll be only one mutex each time.

teamclouday avatar Nov 12 '23 15:11 teamclouday