kaytat / SimpleProtocolPlayer

Audio player for uncompressed PCM data
Apache License 2.0
108 stars 22 forks source link

[question] how to have separate output in pulse #20

Open molecular opened 5 years ago

molecular commented 5 years ago

The described pulse configuration for the server "records" an existing source.

In my case this is not desireable and I would prefer to have a separate output in pulse.

Is this possible (maybe using some dummy output or something?)

lineber commented 5 years ago

I think I am having the same issue. In my case, I edited my config file to send the audio through alsa_output.pci-0000_01_00.1hdm-stereo-extra1.monitor It works with about an 8 frame latency issue. But worst, the speakers on my desktop are still play. I wanted to be able to turn off the speakers and have the audio go through my phone.

I was hoping to create a new source sink and connect to that with my phone.

lineber commented 5 years ago

Okay, I added a virtual output and it works fine.

I rand the following commands in the terminal: $ pacmd load-module module-null-sink sink_name=SimpleProtocolPlayer $ pacmd update-sink-proplist SimpleProtocolPlayer device.description=SimpleProtocolPlayer $ pactl list sources short 4 SimpleProtocolPlayer.monitor module-null-sink.c s16le 2ch 44100Hz RUNNING

modify the /etc/pulse/default.pa to load source as 4 and it works as expected.