Coder Social home page Coder Social logo

Create DLNA/UPNP Group about pulseaudio-dlna HOT 16 CLOSED

masmu avatar masmu commented on July 19, 2024
Create DLNA/UPNP Group

from pulseaudio-dlna.

Comments (16)

SpineEyE avatar SpineEyE commented on July 19, 2024 1

It would be great to have this feature even without latency settings!

The pacmd commands by ryanroth somehow don't work for me: I created a combined sink of my analog output and a dlna renderer in the same LAN. I can play music on both of them separately but when I select the combined sink as output, pulseaudio-dlna instructs the dlna device to stop playing. pavucontrol shows that there should be audio playing on both of them.

I tried to rebase the commit myself, but the code has changed so much that it's pretty hard without having worked on the project before. Do you think you have time to do this?

from pulseaudio-dlna.

masmu avatar masmu commented on July 19, 2024

Can you describe the process of doing this with pulseaudio?

from pulseaudio-dlna.

ryanroth avatar ryanroth commented on July 19, 2024

pacmd load-module module-combine-sink sink_name=combine sink_properties=device.description=myCombine slaves=remap50,remapLFE channel_map=front-left,center,front-right,rear-left,rear-right,lfe channels=6

from pulseaudio-dlna.

ryanroth avatar ryanroth commented on July 19, 2024

That will create a new device called Combine from the slaves

from pulseaudio-dlna.

masmu avatar masmu commented on July 19, 2024

This is very cool.

Is your sound is sync? Because i guess every device recieves its own stream and therefore there its highly possible that they are not synchronous.

from pulseaudio-dlna.

ryanroth avatar ryanroth commented on July 19, 2024

Mine were all in sync. My TV had the option to adjust the delay on it in pavucontrol. It would be cool if you could work in audio delay/offset in the devices that are created my pulseaudio-dnla.

from pulseaudio-dlna.

masmu avatar masmu commented on July 19, 2024

Which TV do you have and where is that option in pacontrol exactly?

What do you mean with your last sentence? 😃

from pulseaudio-dlna.

ryanroth avatar ryanroth commented on July 19, 2024

A Sharp lcd running off hdmi.

Expand advance under the volume slider.

It would be nice if the DNLA devices that are created had the offset slider like my video cards hdmi port does.
image

from pulseaudio-dlna.

masmu avatar masmu commented on July 19, 2024

Okay, mine are not in sync. So that yours are in sync is by coincidence i guess. Or the sonos devices have some special feature which does that.

There is a major problem with that feature. As soon as you add the combine-sink pulseaudio constantly adds virtual streams for all the specified sinks.
Since pulseaudio-dlna reacts to those changes your devices will always play. There is no method in shutting them down as long as the combine-sink exists.
If you switch to another sink (e.g. to your HDMI monitor sink) the devices won't playback any sound anymore, because pulseaudio does not transmit any data to those virtual streams. But since the virtual streams will persists pulseaudio-dlna will still stream zero-data to your devices. You just don't hear it.

combine-sinks currently break the whole architecture 😄 , but i will play with it a bit to see what can be done.

from pulseaudio-dlna.

ryanroth avatar ryanroth commented on July 19, 2024

Are all your devices the same manufacture?

Awesome. Thanks.

from pulseaudio-dlna.

masmu avatar masmu commented on July 19, 2024

2 of them are. One self build via software and a chromecast.

from pulseaudio-dlna.

masmu avatar masmu commented on July 19, 2024

I quickly hacked the basics in.

There is quite some stuff necessary to cheat the pulseaudio mechanics. No zones, no channels yet, just a new sink which plays on all found devices.
This is just a proof of concept, don't expect too much. But in contrast to your solution, it will stop playing if you give the order.

You can checkout the result here.

from pulseaudio-dlna.

masmu avatar masmu commented on July 19, 2024

I have just seen your request for the the latency offset. As is seems thats not possible because of pulseaudio. See the post here. Summarized: Pulseaudio supports latency offset only for ALSA and bluetooth devices.

There is really nothing i can do about this, sorry.

from pulseaudio-dlna.

polyzen avatar polyzen commented on July 19, 2024

The branch for combined sinks still exists. I suppose it was never merged as it didn't get testing?

from pulseaudio-dlna.

polyzen avatar polyzen commented on July 19, 2024

Note: This is not needed (perhaps not even ideal?) if you want to use multiple Sonos speakers as one. You can use a Sonos client (eg. socos) to choose a room/speaker and group as you wish. Choose that room/speaker as your Pulse output.

from pulseaudio-dlna.

rektide avatar rektide commented on July 19, 2024

I wanted to run the following & get output on my chromecast & usb soundcard:

pacmd load-module module-combine-sink sink_name=output channels=2 adjust_time=1 slaves=my_chromecast,alsa_output.usb-Turtle_Beach_Blah_Blah.analog-stereo

The chromecast device does not output any audio though in this case. Even if it were out of sync, it would be very useful to have. Is there any way we can re-open this ticket, in some form?

from pulseaudio-dlna.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.