Have you already seen this article on Bluetooth using (A2DP) IoT - Play audio from your Intel® Edison via Bluetooth* using Advanced Audio Distribution Profile (A2DP) | Intel® Develo… ?
Take a look at it, hopefully you’ll find some useful information here.
Another helpful thread: Re: Sending audio to bluetooth earbuds using Pulseaudio/ALSA
First thanks Intel_Alvarado for your reply
second i have seen those and tried it and already player audio through a bluetooth headset using the built in bluetooth module in the intel edison
but what i need is as follows: i added an extra bluetooth module to intel edison using the UART GPIOs on the intel mini breakout board and the RX and TX pins of the bluetooth module and powerd it from the 3.3 vold system out of the edison GPIOs and this module is connfigured to connect to a bluetooth head using AT COMMANDS
i need to make the out but of the UART of the GPIOs be the audio data of the mplayer so that i can transmit them to the head set using this external bluetooth module connected to the UARD through GPIOs
as i need both the built in bluetooth module and the newly added one t send data to diffrent headsets so i used the built in bluetooth as you said using the A2DP
now i need to find a way that the same data transimited through the built in module to the headset using A2DP be also transimited to UART ports of GPIOs
any help will be appreciated