I am trying to do an audio streaming over bluetooth using an SCO channel. I want to connect the phone with a computer. In the computer side I am using a Widcomm driver.
I am using a CBluetoothSynchronousLink object. When I do a CBluetoothSynchronousLink::SetupConnection() I have a SCO link opened. I know that it is openened because in the callback function MBluetoothSynchronousLinkNotifier::HandleSetupConnectionCompleteL() I have a KErrNone.
The CBluetoothSynchronousLink has the member function CBluetoothSynchronousLink::Send(). I would want to know how I must send audio data over this link, because I have a CMdaAudioInputStream object and I am trying to send an audio data buffer obtained by CMdaAudioInputStream::ReadL and, in this case, the phone reboots. When I use the CBluetoothSynchronousLink::Send() function to send any other data I obtain a KErrNone in the callback function MBluetoothSynchronousLinkNotifier::HandleSendCompleteL().
Thanks in advance.