chaosdorf / spacebell

Chaosdorf hackspace doorbell service using mqtt and PulseAudio
MIT License
0 stars 0 forks source link

Hardcoded pulseaudio sink #4

Open msteinhoff opened 4 years ago

msteinhoff commented 4 years ago

The sink is hard-coded to pulse_sinks[0].

I'm not a PulseAudio wizard, so the questions are:

Is pulse_sink[0] always the correct sink or might there be more than one sink?

Does it make sense to make this a configurable option?

YtvwlD commented 4 years ago

A "sink" in PulseAudio's terms is an audio output. So yes, while using the first one might be good enough for our setup, there will be more in most cases. PulseAudio even has the concept of a "default" sink where all new applications' streams are placed, so it would make sense to use this one.