Re: Listening to a CD over the net
On Sun, Mar 08, 2015 at 01:57:05AM +0100, Christian Weisgerber wrote: Since I seem to be the only person using this feature (with the possible exception of ratchov@ himself), here's a periodic reminder that you can use sndio OVER THE NETWORK. mpd.conf on the server: audio_output { typepipe nameroom command aucat -f snd@192.168.17.170,0/0 -i - } audio_output { typepipe namex201 command aucat -f snd@192.168.17.168,0/0 -i - } audio_output_format 48000:16:2 rc.conf.local on the output boxes: sndio_flags=-U 0 -L - Bonus feature: turn both of them on and the slight lack of sync between outputs turns into reverb which makes your house seem 10x larger (then turn one of them off because they will keep drifting apart and it becomes really annoying). Maybe different buffer sizes will fix this, but I never bothered to check. Cheers Zé --
Re: Listening to a CD over the net
On Sun, Mar 08, 2015 at 08:11:57AM +, Zé Loff wrote: On Sun, Mar 08, 2015 at 01:57:05AM +0100, Christian Weisgerber wrote: Since I seem to be the only person using this feature (with the possible exception of ratchov@ himself), here's a periodic reminder that you can use sndio OVER THE NETWORK. mpd.conf on the server: audio_output { typepipe nameroom command aucat -f snd@192.168.17.170,0/0 -i - } audio_output { typepipe namex201 command aucat -f snd@192.168.17.168,0/0 -i - } audio_output_format 48000:16:2 rc.conf.local on the output boxes: sndio_flags=-U 0 -L - Bonus feature: turn both of them on and the slight lack of sync between outputs turns into reverb which makes your house seem 10x larger (then turn one of them off because they will keep drifting apart and it becomes really annoying). Maybe different buffer sizes will fix this, but I never bothered to check. We don't have the necessary code to synchronize two audio devices. Changing the buffer size wont fix the drifting
Re: Listening to a CD over the net
On Sun, Mar 08, 2015 at 11:22:17AM +0100, Alexandre Ratchov wrote: On Sun, Mar 08, 2015 at 08:11:57AM +, Zé Loff wrote: On Sun, Mar 08, 2015 at 01:57:05AM +0100, Christian Weisgerber wrote: Since I seem to be the only person using this feature (with the possible exception of ratchov@ himself), here's a periodic reminder that you can use sndio OVER THE NETWORK. mpd.conf on the server: audio_output { typepipe nameroom command aucat -f snd@192.168.17.170,0/0 -i - } audio_output { typepipe namex201 command aucat -f snd@192.168.17.168,0/0 -i - } audio_output_format 48000:16:2 rc.conf.local on the output boxes: sndio_flags=-U 0 -L - Bonus feature: turn both of them on and the slight lack of sync between outputs turns into reverb which makes your house seem 10x larger (then turn one of them off because they will keep drifting apart and it becomes really annoying). Maybe different buffer sizes will fix this, but I never bothered to check. We don't have the necessary code to synchronize two audio devices. Changing the buffer size wont fix the drifting Thanks for the info. I reckon it would be quite an undertaking to sync audio devices over (different) network connections -- especially on wifi, as in my case --, I just wondered if changing the buffer size would make a difference. Anyhow that isn't really important (and if it were, I'd get wireless speakers or something like that), I'm more than happy as it is. Thanks for the great work, Alexandre.
Listening to a CD over the net
Since I seem to be the only person using this feature (with the possible exception of ratchov@ himself), here's a periodic reminder that you can use sndio OVER THE NETWORK. Optical drives are kind of passé, but I still keep a working USB one around. I hooked it up to a convenient machine--an old sparc64 with USB1.1, as it happens--slotted in an audio CD, then took my laptop and went into a different room. On the laptop I restarted sndiod with -L-, then ssh'ed to the machine with the CD and ran $ AUDIODEVICE=snd@laptop/0 cdio cdplay ... and that's it. Music in my laptop headphones. Because we can. Sndio doesn't have any built-in authentication. You can use ssh's port forwarding if you don't want to run it over the naked network. In my case, IPsec over the WPA2-secured wireless seemed enough. -- Christian naddy Weisgerber na...@mips.inka.de
Re: Listening to a CD over the net
On Sun, Mar 08, 2015 at 01:57:05AM +0100, Christian Weisgerber wrote: Since I seem to be the only person using this feature (with the possible exception of ratchov@ himself), here's a periodic reminder that you can use sndio OVER THE NETWORK. Optical drives are kind of pass?, but I still keep a working USB one around. I hooked it up to a convenient machine--an old sparc64 with USB1.1, as it happens--slotted in an audio CD, then took my laptop and went into a different room. On the laptop I restarted sndiod with -L-, then ssh'ed to the machine with the CD and ran $ AUDIODEVICE=snd@laptop/0 cdio cdplay ... and that's it. Music in my laptop headphones. Because we can. Sndio doesn't have any built-in authentication. You can use ssh's port forwarding if you don't want to run it over the naked network. In my case, IPsec over the WPA2-secured wireless seemed enough. -- Christian naddy Weisgerber na...@mips.inka.de This is cool, it seems ratchov@ included this feature in his Linux port.. http://www.sndio.org/install.html Something horrible like this lets me listen to music on a Linux laptop (headphones), streamed from my OpenBSD desktop with no speakers: # ip6tables -A INPUT -p tcp -s fe80::/64 --dport 11025 -m state \ --state NEW -j ACCEPT $ D_LIBRARY_PATH=. ./sndiod -L fe80::blah%wlan0 Because.. we.. can? :-) -Bryan.