I’m working on getting call audio from Android to macOS but facing issues with opening the SCO connection. I’ve successfully connected to Android and set up the RFCOMM channel for the Handsfree service. However, when the RFCOMM connection opens, I encounter the following console messages on macOS:
AudioHardware-mac-imp.cpp:1060 AudioObjectAddPropertyListener: no object with given ID 0
AudioHardware-mac-imp.cpp:1060 AudioObjectAddPropertyListener: no object with given ID 0
AudioHardware-mac-imp.cpp:1060 AudioObjectAddPropertyListener: no object with given ID 0
AudioHardware-mac-imp.cpp:1060 AudioObjectAddPropertyListener: no object with given ID 0
AudioHardware-mac-imp.cpp:409 AudioObjectHasProperty: no object with given ID 0
AudioHardware-mac-imp.cpp:409 AudioObjectHasProperty: no object with given ID 0
Connected to OnePlus 7 on channel 3
AudioHardware-mac-imp.cpp:409 AudioObjectHasProperty: no object with given ID 0
AudioHardware-mac-imp.cpp:409 AudioObjectHasProperty: no object with given ID 0
AudioHardware-mac-imp.cpp:409 AudioObjectHasProperty: no object with given ID 0
AudioHardware-mac-imp.cpp:409 AudioObjectHasProperty: no object with given ID 0
I’ve been trying to configure the audio driver for SCO without success. After completing the RFCOMM connection, I attempted device.connectSCO()
but it throws an error:
Failed to open SCO connection
scoConnectionOpened callback response: Optional(-536870201)
I’ve learned about the deprecated method IOBluetoothAddSCOAudioDevice
but haven’t found a suitable alternative. Any tips or help on how to proceed would be greatly appreciated.