Comments (8)
organization of streams via JSON-RPC (like adding, removing, renaming) is on the roadmap.
Maybe I will add the pipe creation mode as an optional query part to the pipe's URI.
Something like: -s pipe:///tmp/snapfifo?mode=[read|create]
from snapcast.
It's now configurable in the develop branch (86b34af). If you want to test it before the release (ETA during the weekend):
"read mode" (not create the fifo):
-s "pipe:///tmp/snapfifo?mode=read"
"create mode" (create the fifo if not exists):
-s "pipe:///tmp/snapfifo?mode=create"
Current default (if unconfigured) is create
, i.e. behaves as before. This might change to read
in future releases. The read
mode already seems to work well with mpd
. When I stop mpd, mpd removes the fifo and the Snapserver keeps trying to open the fifo until mpd is restarted.
from snapcast.
It's now released in the v0.7.0. You can configure it as described in my last post.
from snapcast.
would it help if the Snapserver would have a "not create pipe" mode, where the server waits until someone creates the file?
=> Pulseaudio would create the pipe, but would it work after reboot? Wouldn't the pipe still be there?
from snapcast.
Allowing a "not create pipe" mode would most likely solve my issue. It might even be useful in scenarios where we would want to change the source of snapserver to read different pipes to read different streams dynamically. Could be something nice to expose through the REST service calls.
I assume that pulseaudio would remove the pipe when it unloads the module on shutdown. If it isn't, then it's a pulseaudio bug.
from snapcast.
Works great! Thanks a lot!
from snapcast.
@pbros you mentioned that you use pulseaudio for A2DP to snapcast. Would you be so kind and tell us how to do so? Thanks in advance.
from snapcast.
If you need I can go dig out the config, but essentially I setup my ubuntu 16.04 laptop as A2DP receiver. Then, instead of the laptop's speakers, I configured pulseaudio to output everything into a pipe, which I then configured as an input in snapserver.
from snapcast.
Related Issues (20)
- Snapserver considers two independent devices as 1 HOT 1
- Add idle/playing status to mixer script call HOT 2
- Volume is set to 0 after mute/unmute in pipewire
- Unable to install the provided deb package on bookworm-based raspbian HOT 12
- Snapweb was not installed HOT 8
- Add Plexamp support for audio playback HOT 4
- Snapclient crashes and will not start under any format. HOT 3
- Snapclient sounds like /dev/urandom just got piped into my speaker HOT 48
- Option to disable avahi
- Control clients do not receive updates on time HOT 2
- Script volume control script is called on each update without waiting for the previous to end HOT 2
- [Feature Request][Bug] Mmaping the streamfile
- Media player does not support browsing media HOT 1
- Arm64 deb release
- Support for ALSA floating point samples?
- Snapclient Failed HOT 11
- Librespot no sound? HOT 3
- snapclient not finding alsa output on raspi 1b HOT 4
- Snapserver crashes whenever I try to connect to librespot HOT 1
- Meta stream switches streams with delay HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from snapcast.