http://teksoftco.com/forum/viewtopic.php?t=1885
Older:
A2DPTOGGLE RC-2
Installation
Visit http://www.teksoftco.com section Freeware and download A2DPToggle. You will find a .zip file, that you need to unzip, and there a .txt file with further installation instructions. Please read them carefully.
Configuration
After A2DPToggle is installed, you will need to pair your A2DP Wireless Stereo Device (Headset, Loudspeaker) to your Windows Mobile device.
The A2DP Device must support the service called "wireless stereo" or "audio/video". Make sure you select one of these services when pairing.
With the A2DP device paired, you can use the Play and the Stop buttons in the plugin interface.
Next to the Stop button there is a signal indicator that will show your bluetooth link status. At the very beginning this will calibrate automatically, so wrong indications might appear: to simplify this process, after the A2DP device is paired, simply move away from your device until the signal gets as low as possible. We need this to be able to determine the minimum value for Bluetooth Signal (Unfortunately the BT driver doesn't provide the same values on several device we've tested: -128..127 on Universal, -32..0 on Imate Ultimate 8150).
Next to the signal indicator, there is an icon showing the status of the A2DP device: OK (when the pairing is correctly completed and the headset is connected to the device), Err (when the headset is not yet paired) and Off (when the headset is out of the device's Bluetooth coverage radius, or when the headset is turned off/disconnected).
To be able to use "Start/Play", this status indicator must show OK.
The second indicator shows the Bluetooth status.
Next to it, there is a toolbox icon, that opens the settings screen:
"Handle Bluetooth automatically" would turn bluetooth on when you press start (play), and off when you press stop.
"Execute file after start" would run the specified application when you press "Start/Play", by default this is set to Media Player.
Details regarding internal functionality
The devices that support A2DP (most wm6.0 bluetooth devices), come with 2 audio drivers installed:
1) The "Audio Output" Driver (supported since ppc 2002)
2) The "Bluetooth Advanced Audio Output" Driver, that is responsible of sending audio data over a L2CAP Bluetooth connection, as per A2DP protocol
When the user connects a Stereo A2DP headset, and selects the "Wireless Stereo" profile, the Bluetooth Adv. Audio Output becomes the nr. 1 audio output route, and is indexed as the First audio driver. Any application will output sound by using that driver.
The problem is that sometimes we are already listening to audio in the device's speakers, and then suddenly we want to switch the output to our a2dp headsets - this is sometimes problematic, as the First audio driver changes from "Audio Output" to "Bluetooth Adv. Audio Output" and the applications currently playing audio need to be restarted.
For such issues, we've provided a tool, as freeware, that will install as a today plugin and offer the user the possibility of instantly switching the audio between Device Speaker and A2DP Stereo Headset.
It is designed for WM6.0, Microsoft Bluetooth stack, please download it and let us know how it works for you.
Command line
You can use A2DP.exe in \program files\teksoft\A2DPToggle
The supported parameters are:
- Code: Select all
a2dp.exe -a2dp:on|off -bluetooth:on|off
or
a2dp.exe -a2dp:1|0 -bluetooth:1|0
a2dp:on routes audio to a2dp device, a2dp:off routes audio back to device
bluetooth:on starts bluetooth, bluetooth:off toggles BT off.
Tested on Imate Ultimate 8150/wm6.0, HTC Universal WM5.0, eten m600+/wm5.0, the gfx was made for vga but works on qvga too.

