Showing posts with label bluetooth. Show all posts
Showing posts with label bluetooth. Show all posts

Tuesday, February 2, 2010

Bluetooth support for headphoned and Panucci

The hack week continues with some goodness for your ears (and the undisturbedness of people sharing the subway or bus with you): headphoned 1.6 adds support for Bluetooth headsets, so when you disconnect your Bluetooth headset, playback of music will automatically pause, which seems to be a much-requested feature. Thanks to Alan and Faheem for making this possible. Again, now that the package is ready, it's your turn to test and vote the package into the Extras repository.

Now that headphoned supports Bluetooth headsets, the only problem is that you still need to get your device out of your pocket to start playback. That's why I quickly hacked some automatic playback start goodness into Panucci (which is of course optional). The (due to space constraints irritatingly named) "Auto-play on headset" option will automatically start playback in Panucci when your Bluetooth headset or your wired headset with microphone is connected:

(Yes, I'm a big fan of the Marina Theme...)

I'm not promoting the new Panucci version yet, as I want the previous release (0.3.9-1) to go through Extras-Testing first. The version with headset support (0.3.9-2) is already in Extras-Devel, and I'll promote it to -Testing after the first one got through (thanks to all of you who have reviewed and rated the package in -Testing).

In short, this means that you will be able to keep your N900 in your pocket and simply connect/disconnect your Bluetooth headset to control playback, which I think is quite nice... (no support for BT headset buttons in Panucci so far, as I can't really test this myself - send patches and/or D-Bus logs)

Tuesday, August 11, 2009

Multiplayer Tennix coming to your tablets soon

Last Tuesday, I have started working on adding network-based multiplayer support to Tennix (a free 2D tennis game for Linux, Mac OS X, Windows and Maemo). In addition to two players playing on one computer (which already worked a long time ago), we now support playing Tennix over the network on two tablets (obviously, playing a tablet-versus-PC game will also work).

Currently, this network play runs over UDP, so WiFi connectivity is needed when you want to play tablet-versus-tablet. I might be able to add Bluetooth support later on, but the BlueZ API seems way more complicated than SDL_net's API which I currently use. Let me correct myself here: There's no real documentation for the BlueZ C API that I could find.

A small library with a clean API that abstracts Bluetooth, WiFi and maybe some other connectivity options and provides an easy way to establish a transport between two hosts/tablets would surely help boost developer interest in creating multi-player games and cross-tablet applications.

A video demoing the controls on two tablets can be found on YouTube.