1 Jul 2009 17:34
PlaySound issue
Nicola Mfb <nicola.mfb <at> gmail.com>
2009-07-01 15:34:29 GMT
2009-07-01 15:34:29 GMT
Hi!
I'm trying to play two different sound when my wifi card get/release
an ip address from udhcpc.
To get these events I use rtnetlink.
I have two issues, the first is that when udhcpc get a lease rtnetlink
signals a new address, del address and new address again, this does
not happen with dhcpcd, but may be OT there.
The second is related to PlaySound. As of the tree grouped events
PlaySound is called fast.
As afaik only one sound at time is permitted I want to check for dbus
error, stopping the player if
"org.freesmartphone.Device.Audio.AlreadyPlaying" is raised.
The problem is that the above error comes out only some time while the
most recourring error is "Could not open audio device for playback.
Device is being used by another application."
"org.freesmartphone.Device.Audio.PlayerError".
I'm using debian sid with "original" 5.1 FSO and QT library dbus module.
Regards
Nicola
RSS Feed