-
Add
Enable=Sourceto /etc/bluetooth/audio.conf right after[General]. -
Find address in form XX:XX:XX:XX:XX:XX of phone with
hcitool scan. -
Pair and trust smartphone with
sudo bluez-simple-agent hci0 XX:XX:XX:XX:XX:XXandsudo bluez-test-device trusted XX:XX:XX:XX:XX:XX yes. -
Create loopback in pulseaudio connection bluetooth a2dp source with alsa sink:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Creates a reducer. | |
| * @param {string} initialState - The initial state for this reducer. | |
| * @param {object} handlers - Keys are action types (strings), values are reducers (functions). | |
| * @return {object} A reducer object. | |
| */ | |
| export default (initialState = null, handlers = {}) => (state = initialState, action) => { | |
| if (!action && !action.type) return state; | |
| const handler = handlers[action.type]; | |
| return handler && handler(state, action) || state; |