![]()
# You can get it by calling : pactl list short sinks # Name of the local sink in this computer # It's called to add or remove the device from pulseaudio GMEDIARENDER AUDIOSINK AUDIODEVICE BLUETOOTH# This script is called by udev when you link a bluetooth device with your computer KERNEL="input*", RUN+="/usr/lib/udev/bluetooth"Īdd folder udev to /usr/lib by using mkdir sudo mkdir /usr/lib/udev & cd /usr/lib/udevĪnd add this to the file bluetooth (credits ragusa87) #!/bin/bash First please add new configuration to udev init.d by editing file /etc/udev/rules.d/les and add this to the file SUBSYSTEM="input", GROUP="input", MODE="0660" ![]() We are going to use ragusa87 script to automate the bluetooth source to audio sink. Start pulseaudio service with: pulseaudio -D You can using any method you like, i personally using speex-float-3 for reference you can see this link GMEDIARENDER AUDIOSINK AUDIODEVICE CODESet Bluetooth Class, Modify the following line to: Class = 0x00041CĠx000041C means that the rpi bluetooth support A2DP protocol.Īdd / modify (don't forget to check the code thoroughly before adding them), and change resample-method = trivial Edit Configuration and applied itįirst add pi username to the group pulseaudio with sudo usermod -a -G lp piĬreate new config under /etc/bluetooth/nf using text editor and add the following line :Įdit file /etc/bluetooth/nfusing your preferred text editor (I'm using nano). GMEDIARENDER AUDIOSINK AUDIODEVICE INSTALLI rather update the firmware of raspberry first before installing them because i have problem with rpi-bluetooth package so i do: sudo rpi-updateĪnd make it install and advance to next step. This project depend on pulseaudio so grab it and installing by typing: sudo apt-get update & sudo apt-get install bluez pulseaudio-module-bluetooth python-gobject python-gobject-2 bluez-tools udev This is the step that I've been working on and it works on raspberry pi 3. 备注:更新:gmediarender添加/etc/config/gmediarender和/etc/hotplug.d/usb/gmediarender文件,以及修改了/etc/init.I have been on this project after while (to help my friend doing their paper for graduating) and find the online project doing just fine (although the pi processing the audio is quite lagging the pi, and voltage drop make it freeze as the only way to make it reboot is to unplugged the power cable). ++ CFLAGS+=" -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wwrite-strings -std=c99" +- CFLAGS+=" -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wwrite-strings" + controllers a means to render media content (audio, video and images) + gmediarender implements the server component that provides UPnP # when doing other things in the background. # that this should have higher priority to avoid skipping # This has real-time constraints, so let's at least tell the OS 改成 # Set the initial volume to something manageable ![]() ![]() 编辑/etc/init.d/mpd,修改如下: # Set the initial volume to something manageable Mixer_control "Speaker" #Speaker是amixer命令获取到的 # use this if you want to use OSS audio output #error_file "/tmp/extroot/.mpd/mpd.error" Playlist_directory "/tmp/extroot/.mpd/playlist" Kernel modules->USB Support->kmod-usb-storage-extras Kernel modules->USB Support->kmod-usb-storage Kernel modules->USB Support->kmod-usb-hid ![]() Kernel modules->Sound Support->kmod-usb-audio Kernel modules->Sound Support->kmod-sound-core Kernel modules->Native Language Support->kmod-nls-cp437 Kernel modules->Native Language Support->kmod-nls-utf8 Kernel modules->Filesystems->kmod-fs-vfat Kernel modules->Filesystems->kmod-fs-ntfs Kernel modules->Filesystems->kmod-fs-msdos Kernel modules->Filesystems->kmod-fs-ext4 自己编译固件,make menuconfig时选择 Base system->block-mount ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |