Re: [mpg123-devel] 'Unfinished command' when operating in remote mode
Brought to you by:
sobukus
From: Jonathan Y. <10...@gm...> - 2022-09-06 11:36:31
|
On 9/5/22 17:38, Thomas Orgis wrote: > > > Am 5. September 2022 16:28:46 MESZ schrieb Jonathan Yong <10...@gm...>: >> I'm kind of lost in the conversation, and I'm not really familiar with the problem. How should it be tested? > > one term: > mpg123 -R --fifo /dev/shm/mpg123 > > another term: > echo silence > /dev/shm/mpg123 > echo load /long/file/path > /dev/shm/mpg123 > > > Observe error messages in first term. Simulation of short read() by changing the value of requested bytes to something smaller than buffer. > Am I getting the problem correctly? If REMOTE_BUFFER_SIZE is too small, the path longer than it will never work. I changed REMOTE_BUFFER_SIZE to 256 to test, something like: echo silence > /dev/shm/mpg123 && sleep 1 && echo load /tmp/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA.mp3 > /dev/shm/mpg123 Seems to work fine for bigger buffers. |