Skip to content

Instantly share code, notes, and snippets.

Duane Bekaert Marneus68

Block or report user

Report or block Marneus68

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

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 / 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;
You can’t perform that action at this time.