View Single Post
OVK's Avatar
Posts: 559 | Thanked: 1,017 times | Joined on May 2008 @ Finland
#57
Originally Posted by thp View Post
That's actually how it works: headphoned installs a I/O watch that gets executed every time the state file changes (which is only when the headphones get plugged/unplugged). After that, it notifies all known media players and then returns to the main loop which again is waiting for I/O (by blocking on the state file). If you use "ps", you should see that headphoned is sleeping ("S") most of the time.

The only thing that headphoned uses constantly is a bit of your main memory.

See http://git.maemo.org/git/headphoned/...c/headphoned.c
Would it be possible to expand the functions of headphoned app so that it could also give other commands than just pause to Mediaplayer?

The case that I have in mind is the wired remotes that Nokia has available. Those have for example volume buttons and play/pause/forward etc.

This subject is also discussed here: http://talk.maemo.org/showthread.php?t=21182 (see the pages 3 and 4). I already mentioned your app there.
 

The Following User Says Thank You to OVK For This Useful Post: