Broken Pipe with ALSA
Dear forum,
i've created a programm for audio streaming via network. But there's a problem with audio playback. Sometimes (~70%) when i start my application the writei() call returns the "broken pipe" error code. Can anybody tell me, what this is about? And what does "broken pipe" mean anyway? thanks in advance Michael |
Broken Pipe usually indicates that the connection between the two ends has been lost.
|
Ok, thats plausible.
But I'm wondering why this happens. Is it possible I'm not writing new data fast enough, so that the buffer gets empty? |
not that i know alot about it but that errno is EPIPE
when sockets were introduced in 4.2BSD, pipes were reimplemented as sockets. A process tried to read or write to a pipe where the other end of the pipe no longer exists. you might want to try send() it's a little easier to controll than write. generally i think read() will block until there is some data to return so you have to syncronize in some way |
I don't get it, let's see if you mean the same thing.
my code looks like: Code:
while (1) { here snd_pcm_writei returns EAGAIN ("Broken Pipe"). |
All times are GMT -5. The time now is 07:44 PM. |