Bluetooth sound collection Blocking audio playback?on macOS

I use openal to record and use openal to play ;
use QT demo to do the communication.

When I put on the Bluetooth headset, as long as I turn on the audio record by BT, the audio playback will be blocked, unable to consume data. And the trumpet  is black-color at this time;
But when the trumpet is gray, the record will not block the playback,i can play and record .
It's a random event。
I wonder if there is a program that can detect or change this blocking?
Bluetooth sound collection Blocking audio playback?on macOS
 
 
Q