[pulseaudio-discuss] [PATCH 2/2] pacat: Use a ringbuffer for playback mode

2016-11-27 Thread Ahmed S. Darwish
Current pacat code reads whatever available from STDIN and writes it directly to the playback stream. A minimal buffer is created for each read operation; no further reads are then allowed unless earlier read buffer has been fully consumed by a stream write. While quite simple, this model breaks u

[pulseaudio-discuss] [PATCH 1/2] pulsecore: srbchannel: Extract ringbuffer code into its own file

2016-11-27 Thread Ahmed S. Darwish
To solve a 10.0 release blocker, pacat is to use this ringbuffer implementation for its own playback mode. Matching the rest of global pulse code, the ring initialization APIs should be more opaque and sizes should be in size_t rather than integers. Nonetheless they're left as is out of care not t

Re: [pulseaudio-discuss] Play audio files of high sample rates without hassle

2016-11-27 Thread Erwan JACQ
You can use the default-sample-rate/alternate-sample-rate config values as minimal sample rates. So if you input a 8kHz audio stream, you resample it to 48kHz or 44.1kHz rather than let it to go 8Khz. I attached my patches. They just remove the limitation that the desired sample rate should be ei

Re: [pulseaudio-discuss] Play audio files of high sample rates without hassle

2016-11-27 Thread Tanu Kaskinen
On Sat, 2016-11-26 at 12:54 +0100, Erwan JACQ wrote: > I have a sound card Focusrite Scarlett 2i2 USB with a DAC supporting > many sample rates : 44100, 48000, 88200, 96000, 176400, 192000 Hz > > However, pulseaudio can only switch at runtime between 2 sample rates, > defined by default-sample-rat