Re: [pulseaudio-discuss] [PATCH v6 1/2] pipe-source: generate silence when no writers connected

2018-02-16 Thread Georg Chini
On 14.02.2018 23:16, Raman Shyshniou wrote: Currently the pipe-source does not produce any data if no writer is connected. This patch enable silence generator when last writer closed pipe. It will stop automatically when any data appears. --- After my fixes to module-null-source, I think your

Re: [pulseaudio-discuss] [PATCH] null-source: fix multiple bugs

2018-02-16 Thread Tanu Kaskinen
On Fri, 2018-02-16 at 13:04 +0100, Georg Chini wrote: > On 16.02.2018 11:46, Raman Shishniou wrote: > > On 02/15/2018 11:51 PM, Georg Chini wrote: > > > The current null-source implementation has several bugs: > > > > > > 1) The latency reported is the negative of the correct latency. > > > 2)

Re: [pulseaudio-discuss] [PATCH v6 1/2] pipe-source: generate silence when no writers connected

2018-02-16 Thread Georg Chini
On 16.02.2018 12:35, Raman Shishniou wrote: On 02/16/2018 12:00 PM, Georg Chini wrote: On 14.02.2018 23:16, Raman Shyshniou wrote: Currently the pipe-source does not produce any data if no writer is connected. This patch enable silence generator when last writer closed pipe. It will stop

Re: [pulseaudio-discuss] Sample format spec with Linear 16bit 16kHz

2018-02-16 Thread Georg Chini
On 16.02.2018 10:42, Shinnosuke Suzuki wrote: Hi, I updated pulseaudio  to 11.1. However, this problem was not improved. I tried to check 2 things. 1.I collect voice data from bluetooth headset using parec as follows:  parec -r --rate=16000 --format=s16le --channels=1 > test.raw  parec -r

Re: [pulseaudio-discuss] [PATCH v6 1/2] pipe-source: generate silence when no writers connected

2018-02-16 Thread Georg Chini
On 16.02.2018 13:20, Georg Chini wrote: On 16.02.2018 12:35, Raman Shishniou wrote: On 02/16/2018 12:00 PM, Georg Chini wrote: On 14.02.2018 23:16, Raman Shyshniou wrote: Currently the pipe-source does not produce any data if no writer is connected. This patch enable silence generator when

Re: [pulseaudio-discuss] [PATCH] null-source: fix multiple bugs

2018-02-16 Thread Raman Shishniou
On 02/15/2018 11:51 PM, Georg Chini wrote: > The current null-source implementation has several bugs: > > 1) The latency reported is the negative of the correct latency. > 2) The memchunk passed to pa_source_post() is not initialized > with silence. > 3) In PA_SOURCE_MESSAGE_SET_STATE the

Re: [pulseaudio-discuss] [PATCH v6 1/2] pipe-source: generate silence when no writers connected

2018-02-16 Thread Raman Shishniou
On 02/16/2018 12:00 PM, Georg Chini wrote: > On 14.02.2018 23:16, Raman Shyshniou wrote: >> Currently the pipe-source does not produce any data if no >> writer is connected. This patch enable silence generator >> when last writer closed pipe. It will stop automatically >> when any data appears. >>

Re: [pulseaudio-discuss] Sample format spec with Linear 16bit 16kHz

2018-02-16 Thread Shinnosuke Suzuki
Hi, I updated pulseaudio to 11.1. However, this problem was not improved. I tried to check 2 things. 1.I collect voice data from bluetooth headset using parec as follows: parec -r --rate=16000 --format=s16le --channels=1 > test.raw parec -r --rate=8000 --format=s16le --channels=1 > test.raw

Re: [pulseaudio-discuss] [PATCH] null-source: fix multiple bugs

2018-02-16 Thread Georg Chini
On 16.02.2018 11:46, Raman Shishniou wrote: On 02/15/2018 11:51 PM, Georg Chini wrote: The current null-source implementation has several bugs: 1) The latency reported is the negative of the correct latency. 2) The memchunk passed to pa_source_post() is not initialized with silence. 3) In

Re: [pulseaudio-discuss] [PATCH v6 1/2] pipe-source: generate silence when no writers connected

2018-02-16 Thread Raman Shishniou
On 02/16/2018 12:00 PM, Georg Chini wrote: > On 14.02.2018 23:16, Raman Shyshniou wrote: >> Currently the pipe-source does not produce any data if no >> writer is connected. This patch enable silence generator >> when last writer closed pipe. It will stop automatically >> when any data appears.

Re: [pulseaudio-discuss] [PATCH v6 1/2] pipe-source: generate silence when no writers connected

2018-02-16 Thread Georg Chini
On 16.02.2018 17:37, Raman Shishniou wrote: On 02/16/2018 12:00 PM, Georg Chini wrote: On 14.02.2018 23:16, Raman Shyshniou wrote: Currently the pipe-source does not produce any data if no writer is connected. This patch enable silence generator when last writer closed pipe. It will stop