cyk wrote: 
> Is there any possibility to play to a unix pipe instead of a sound
> device?
> 

I solved it by using an ALSA loopback device.
I used 

Code:
--------------------
    modprobe snd-aloop pcm_substreams=2
--------------------

to load the loopback device.

Then I started Squeezelite and let it play to the loopback playback
device:

Code:
--------------------
    ./squeezelite-armv6hf -s 192.168.1.107 -o hw:Loopback,0,0 -z
--------------------
  

Then I used SoX to record from the record device, convert the format and
pipe it to pifm:

Code:
--------------------
    sox -t alsa hw:Loopback,1,0 -t wav -b 16 -c 1 -r 22050 - | sudo ./pifm - 
99.8
--------------------


Then I can use the one of the many methods to send music to Squeezelite,
and the Raspberry Pi will send it out on 99.8MHz.
Hear your favorite music even on the oldest radio!

I love Linux! Everything is possible.


------------------------------------------------------------------------
cyk's Profile: http://forums.slimdevices.com/member.php?userid=61804
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to