8/6/2023 0 Comments Bluealsa hanging audiotest![]() QDBusConnectionPrivate(0圆6300920) Adding rule: "type='signal',sender='org.bluealsa',path='/org/bluealsa',interface='1',member='PCMRemoved'"Failed to connect PCMRemoved signalĪnd the output of dbus-monitor -system: method call time=1652974083.935035 sender=:1.11 -> destination= serial=20 path=/org/freedesktop/DBus interface= member=AddMatch QDBusConnectionPrivate(0圆6300920) Adding rule: "type='signal',sender='org.bluealsa',path='/org/bluealsa',interface='1',member='PCMAdded'" QDBusConnectionPrivate(0圆6300920) Watching service "org.bluealsa" for owner changes (current owner: ":1.3" )įailed to connect PropertiesChangedSlot signal QDBusConnectionPrivate(0圆6300920) got message reply: QDBusMessage(type=MethodReturn, service="", signature="s", contents=(":1.3") ) QDBusConnectionPrivate(0圆6300920) sending message: QDBusMessage(type=MethodCall, service="", path="/org/freedesktop/DBus", interface="", member="GetNameOwner", signature="", contents=("org.bluealsa") ) I use the same code that I wrote for other interfaces (and there it works).įollows the output of the Qt Creator console: QDBusConnectionPrivate(0圆6300920) Adding rule: "type='signal',sender='org.bluealsa',path='/org/bluealsa',interface='',member='PropertiesChanged'" Cannot connect to the PropertiesChanged signal neither.Maybe the problem is somehow connected to the configuration files? I tried to disable all security but still doesn't work ( ).I cannot use graphical tools (such as d-feet or qdbusviewer) to inspect the DBus, I have only the dbus-* commands.I can use without issues the GetPCMs method of the bluealsa 1 interface.signals from bluez ( org.bluez) are recieved correctly (the connect methods work).cannot use PulseAudio, must stick with bluealsa.QDBusConnection::systemBus().lastError().message() shows no errors.setting QDBUS_DEBUG=1 showed no helpful information.QDebug() destination=:1.11 serial=14 reply_serial=2 QDebug() connection().connect(manager1->service(), //"org.bluealsa", SLOT(PCMAddedSlot(QDBusObjectPath, QVariantMap))), If(!manager1->connection().connect(manager1->service(), //"org.bluealsa", Here is how I do it: manager1 = new QDBusInterface("org.bluealsa", For some unknown reason, the connect method fails. What I need to do is being able to listen to the PCMAdded and PCMRemoved signals sent by the 1 interface of the bluealsa service ( org.bluealsa) through the DBus. This application runs in a Linux-embedded system and communicates with bluez ( ) and bluealsa ( ) via DBus. I'm try to build a C++ application in Qt to capture audio streams from Bluetooth devices and play them to an ALSA playback device.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |