Skip to content

Instantly share code, notes, and snippets.

View a2dp_sink_ubuntu_linux.md

Howto Enable and Use A2DP Sink on Ubuntu Linux with Bluez

  1. Add Enable=Source to /etc/bluetooth/audio.conf right after [General].

  2. Find address in form XX:XX:XX:XX:XX:XX of phone with hcitool scan.

  3. Pair and trust smartphone with sudo bluez-simple-agent hci0 XX:XX:XX:XX:XX:XX and sudo bluez-test-device trusted XX:XX:XX:XX:XX:XX yes.

  4. Create loopback in pulseaudio connection bluetooth a2dp source with alsa sink:

@Marneus68
Marneus68 / rm_r.c
Created May 1, 2012
Recursive file and directory removal in C
View rm_r.c
int rm_r(const char* e_path)
{
DIR *dir = opendir(e_path);
struct dirent *ent;
if (dir == NULL)
/* error while opening the directory */
return -1;
/* DA MAGICKS */
You can’t perform that action at this time.