Re: [Alsa-user] Sending all audio over socket

2015-05-07 Thread Sergei Steshenko
" However, all (audio) applications freeze until my program (which reads from the pipe) begins to run. This is expected behaviour of named pipes. I believe I can solve this by modifying the PCM 'default' dynamically. " - well, to me it sounds like your "overall" application should be a multi-th

Re: [Alsa-user] Sending all audio over socket

2015-05-07 Thread Guru Prasad
I had some luck with the named pipe setup. I was able to set up .asoundrc to write to a named pipe in /tmp and then send this data over a socket and play it on another machine. However, all (audio) applications freeze until my program (which reads from the pipe) begins to run. This is expected beha

Re: [Alsa-user] Sending all audio over socket

2015-05-06 Thread Guru Prasad
Could you give me an example of how I can ask the PCM file plugin to write to a named pipe? Should i create this manually or can I somehow do this via the PCM file plugin itself by using the '|' character? Also, don't named pipes block until there is a reader? Given that I've only been able to do

[Alsa-user] Sending all audio over socket

2015-05-06 Thread Guru Prasad
Hi, I'm trying to write an application that can hook into ALSA and receive all audio and send it across the network. I realize that JACK and Pulse are probably better suited for implementing this, but I would like to be able to run this on most Linux machines including smartphones(hopefully). Cur