mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-15 14:16:02 -06:00
[GH-ISSUE #281] [feature request] Share audio device #226
Labels
No labels
HiDPI
bounty
bsd/freebsd
bsd/openbsd
bug
bug
build-infra
cantfix
critical
doc
duplicate
enhancement
fix-available
from git
from release
good first issue
help wanted
installer/package
invalid
linux
macOS
meta
needs testing
pull-request
query
question
regression
regression
v2.4.0
windows
wontfix
work-in-progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/barrier#226
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @imanolGOMI on GitHub (Apr 5, 2019).
Original GitHub issue: https://github.com/debauchee/barrier/issues/281
I have listen that is possible share audio and microphone. I want use my mic and my headsphones
I would like to use my microphone and my headphones (like the mouse and keyboard) on one computer and when I change the other that works on the other.
I'm sorry if this is stupid, I do not want to waste your time :)
@AdrianKoshka commented on GitHub (Apr 5, 2019):
At least for linux, this already exists (at least, for outputs to my knowledge) via a pulseaudio module.
I feel like this would be better suited as it's own application.
@mpictor commented on GitHub (Apr 28, 2019):
A few links for those who wonder how it can be done, particularly between windows and linux (note, I haven't yet tried any of these):
first some relevant stack exchange questions: superuser 1 superuser 2 sound.stackexchange
... and some solutions (not tested by me, as noted above):
Play Tofeature that can broadcast to things supporting DLNA@AdrianKoshka sure, though Barrier could make this less painful by documenting what's needed and/or helping the user configure it. :)
@AdrianKoshka commented on GitHub (Aug 23, 2019):
Upon reflection, I still feel this is incredibly out of scope for barrier and would only add unneeded complexity.
@Vigrond commented on GitHub (Nov 15, 2020):
Just wanted to add a method that worked for me with barrier using
ffmpeg. This will share desktop audio only (not microphone input).In this example, the client is Ubuntu, and the server is Windows. ffmpeg will need to be installed on both. Other scenarios will need a different command and understanding of ffmpeg.
On the "client", run the ffmpeg command:
ffmpeg -re -f alsa -ac 2 -i default -f rtp rtp://server:1234Where
serveris your barrier server IP address. This will stream desktop audio to the specified address(If you use pulse instead of alsa, replace
-f alsawith-f pulse)It will output something like:
In my example the server is
192.168.1.82On the server machine (
192.168.1.82), copy the SDP text above into a filesdp_fileand run the ffplay command:./ffplay -protocol_whitelist 'rtp,file,udp' .\sdp_fileEnjoy streamed low-latency audio.
I could see this potentially working inside barrier in the future, so here's a little inspiration and direction in case anyone has time for a fork.
@AndreTomasGraca commented on GitHub (Feb 3, 2021):
Hi!
This somehow did not work for me...
I did everything as you said, @Vigrond, except that I had to change
./ffplay -protocol_whitelist 'rtp,file,udp' .\sdp_fileto ffplay.exe -protocol_whitelist rtp,file,udp C:\ffmpeg\bin\sdp_file.sdp because that is the correspondent for Windows (don't you need to correct that in your post, or did I misunderstand something?)I got no errors, but I do not seem to be receiving any audio.
Anyone can help?
André
@Qwerty-Space commented on GitHub (Oct 4, 2022):
@Vigrond sorry to necropost. This works for me. However, it's very high-latency, probably about 5 seconds of lag. Do you know of anything I can do to reduce it?
It shouldn't be high-latency, as they're both connected to the same 1G switch, and have a ping of <1ms