Interaction with bluetooth headset

Hi,
is there an easy way to play some audio via a bluetooth headset or capture the audio from the headset I didn't find a lot of information about this on the web & msdn but I'm sure I'm not the first person trying to write an application interacting with a BT headset...
michivo


Answer this question

Interaction with bluetooth headset

  • Heath Stewart MSFT

    Sorry, I thought there'd be an API for using Bluetooth devices integrated into the .net-cf.
    Thanks, michivo

  • Greg Balajewicz

    I suspect as soon as you paired headset with device you should be able to use normal WAV APIs. OpenNetcf.org has support for that as well. Probably worth a try.

    Note MS BT stack does not support stereo audio profile as of now, that is coming in WM 5.0 AKU 2 as far a I know.



  • listerg

    If the device uses the Microsoft stack and uses the Microsoft headset profile (Doesn't work on most WM2003 devices as the headset support was OEM implemented) you can toggle the system audio to be played through the headset. See here for an example:-

    http://www.peterfoot.net/DivertSystemAudioToABluetoothHeadset.aspx

    This allows you to then use standard functions like PlaySound and the wave APIs to output audio over the headset. You can then toggle audio back to the system speaker when done.

    Peter



  • Dylan Ngo

    This forum is intended to deal with issues directly related to the .NET Compact Framework.

    It appears that this question can better be answered by someone on one of the newsgroups for Windows Mobile or Windows CE. In order to get a quicker and more accurate response, please consider reposting this question to one of the following newsgroups:

    Windows Mobile API:

    microsoft.public.pocketpc.developer

    microsoft.public.smartphone.developer

    Windows CE API:

    microsoft.public.windowsce.embedded

    General programming (not VisualStudio related):

    microsoft.public.windowsce.embedded

    microsoft.public.windowsce.app.development

    Native compilers:

    microsoft.public.windowsce.embedded.vc

    ActiveSync:

    microsoft.public.pocketpc.activesync



  • Chris V

    Thanks, I managed to pair the headset with the PDA using 32feet.net (formerly part of OpenNetCF), I am now going through the bluetooth specs and it actually really uses some IBM CVSD sampling format.
    Thanks for your help, as soon as I'm finished I'll post the essential lines of code here

  • keram

    There isn't. But you can use OpenNetcf.org to work with BT.

  • sat8003

    Yes, I already had a look at this (the BT part is seperated from OpenNetCF now and can be found at 32feet.net). As far as I understand this, 32feet is supposed to be used for networking between PDAs, PCs and smartphones - I think it's not supposed to make the PDA interact with peripherals.
    I was hoping that there was a nice API where I could easily play a wav file or mp3 over the headset and stream audio from the headset. I guess there's no such thing available...

  • Interaction with bluetooth headset