Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raspberry Pi4 - send own audio output (speaker output) #74

Closed
flopyro opened this issue May 21, 2020 · 4 comments
Closed

Raspberry Pi4 - send own audio output (speaker output) #74

flopyro opened this issue May 21, 2020 · 4 comments

Comments

@flopyro
Copy link

flopyro commented May 21, 2020

Hello, is it possible to broadcast my own Audio Output ?
So I have Raspi4 which is connected to a Projector.
I project the a Movie on the neighbours house, and also the other neighbours are watching, and i tought that i can send the sound of the movie thru FM Radio, so the other neighbours can also hear the sound, not only the Image.
Do you know how i could send the Audio from the movie ? I'm usind Kodi as a media player.

Thank you

@flopyro
Copy link
Author

flopyro commented May 28, 2020

ok, i cannot get it to work on PI4. works with other versions PiFmRSD, or with FM_Transmitter, but with this one is not :(
regardin the answer you gave laste year:

pacmd load-module module-pipe-sink file=/tmp/pulse.fifo
pacmd list-sinks # search your default sink
pacmd load-module module-combine-sink slaves=yoursink,fifo_output
pacmd set-default-sink combined
And then run pi_fm_adv --audio - < /tmp/pulse.fifo

Let me know if this works.

there is something missing here, could it be:
pacmd load-module module-combine-sink slaves=yoursink,fifo_output sink_name=combined

?

Anyway, thank you for your work. !!!

@flopyro
Copy link
Author

flopyro commented May 28, 2020

Now i get an errror when trying to start the station:
pi@raspberrypi:/radio/PiFmAdv/PiFmAdv $ pacmd load-module module-pipe-sink file=/tmp/pulse.fifo pi@raspberrypi:/radio/PiFmAdv/PiFmAdv $ pacmd load-module module-combine-sink slaves=alsa_output.platform-soc_audio.analog-mono,fifo_output sink_name=combined sink_properties=device.description=CombinedSinkt
pi@raspberrypi:/radio/PiFmAdv/PiFmAdv $ cd src pi@raspberrypi:/radio/PiFmAdv/PiFmAdv/src $ sudo ./pi_fm_adv --audio - < /tmp/pulse.fifo Carrier: 87.60 Mhz, VCO: 1051.2 MHz, Multiplier: 54.750000, Divider: 12
Allocating physical memory: size = 4354048, mem_ref = 8, bus_addr = fdfa7000, virt_addr = 0xb679b000
Warning: Master PLLA NOT Locked
PPM correction is 0.0000, divider is 2305.2632 (2305 + 1077*2^-12).
Error: could not open stdin for audio input.
Terminating: cleanly deactivated the DMA engine and killed the carrier.
pi@raspberrypi:~/radio/PiFmAdv/PiFmAdv/src $

@rashrf
Copy link

rashrf commented May 30, 2020 via email

@miegl
Copy link
Owner

miegl commented Apr 16, 2022

Easiest solution for piping Pulseaudio is using parec.

@miegl miegl closed this as completed Apr 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants