mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	pulse-server: reduce min quantum to 128/48000
some games want 5ms latency and the 256/48000 previous min value was 5.3ms and just a little too high, reduce this because we probably can.
This commit is contained in:
		
							parent
							
								
									af91ae67de
								
							
						
					
					
						commit
						ddbb54fd6f
					
				
					 3 changed files with 12 additions and 12 deletions
				
			
		| 
						 | 
					@ -95,12 +95,12 @@ pulse.properties = {
 | 
				
			||||||
        #  client.access = "restricted"     # permissions for clients
 | 
					        #  client.access = "restricted"     # permissions for clients
 | 
				
			||||||
        #}
 | 
					        #}
 | 
				
			||||||
    ]
 | 
					    ]
 | 
				
			||||||
    #pulse.min.req          = 256/48000     # 5ms
 | 
					    #pulse.min.req          = 128/48000     # 2.6ms
 | 
				
			||||||
    #pulse.default.req      = 960/48000     # 20 milliseconds
 | 
					    #pulse.default.req      = 960/48000     # 20 milliseconds
 | 
				
			||||||
    #pulse.min.frag         = 256/48000     # 5ms
 | 
					    #pulse.min.frag         = 128/48000     # 2.6ms
 | 
				
			||||||
    #pulse.default.frag     = 96000/48000   # 2 seconds
 | 
					    #pulse.default.frag     = 96000/48000   # 2 seconds
 | 
				
			||||||
    #pulse.default.tlength  = 96000/48000   # 2 seconds
 | 
					    #pulse.default.tlength  = 96000/48000   # 2 seconds
 | 
				
			||||||
    #pulse.min.quantum      = 256/48000     # 5ms
 | 
					    #pulse.min.quantum      = 128/48000     # 5ms
 | 
				
			||||||
    #pulse.idle.timeout     = 0             # don't pause after underruns
 | 
					    #pulse.idle.timeout     = 0             # don't pause after underruns
 | 
				
			||||||
    #pulse.default.format   = F32
 | 
					    #pulse.default.format   = F32
 | 
				
			||||||
    #pulse.default.position = [ FL FR ]
 | 
					    #pulse.default.position = [ FL FR ]
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -59,12 +59,12 @@
 | 
				
			||||||
 *         #  client.access = "restricted"     # permissions for clients
 | 
					 *         #  client.access = "restricted"     # permissions for clients
 | 
				
			||||||
 *         #}
 | 
					 *         #}
 | 
				
			||||||
 *     ]
 | 
					 *     ]
 | 
				
			||||||
 *     #pulse.min.req          = 256/48000     # 5ms
 | 
					 *     #pulse.min.req          = 128/48000     # 2.6ms
 | 
				
			||||||
 *     #pulse.default.req      = 960/48000     # 20 milliseconds
 | 
					 *     #pulse.default.req      = 960/48000     # 20 milliseconds
 | 
				
			||||||
 *     #pulse.min.frag         = 256/48000     # 5ms
 | 
					 *     #pulse.min.frag         = 128/48000     # 2.6ms
 | 
				
			||||||
 *     #pulse.default.frag     = 96000/48000   # 2 seconds
 | 
					 *     #pulse.default.frag     = 96000/48000   # 2 seconds
 | 
				
			||||||
 *     #pulse.default.tlength  = 96000/48000   # 2 seconds
 | 
					 *     #pulse.default.tlength  = 96000/48000   # 2 seconds
 | 
				
			||||||
 *     #pulse.min.quantum      = 256/48000     # 5ms
 | 
					 *     #pulse.min.quantum      = 128/48000     # 2.6ms
 | 
				
			||||||
 *     #pulse.default.format   = F32
 | 
					 *     #pulse.default.format   = F32
 | 
				
			||||||
 *     #pulse.default.position = [ FL FR ]
 | 
					 *     #pulse.default.position = [ FL FR ]
 | 
				
			||||||
 *     # These overrides are only applied when running in a vm.
 | 
					 *     # These overrides are only applied when running in a vm.
 | 
				
			||||||
| 
						 | 
					@ -110,7 +110,7 @@
 | 
				
			||||||
 * ### Playback buffering options
 | 
					 * ### Playback buffering options
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 *\code{.unparsed}
 | 
					 *\code{.unparsed}
 | 
				
			||||||
 *     pulse.min.req = 256/48000              # 5ms
 | 
					 *     pulse.min.req = 128/48000              # 2.6ms
 | 
				
			||||||
 *\endcode
 | 
					 *\endcode
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 * The minimum amount of data to request for clients. The client requested
 | 
					 * The minimum amount of data to request for clients. The client requested
 | 
				
			||||||
| 
						 | 
					@ -136,7 +136,7 @@
 | 
				
			||||||
 * ### Record buffering options
 | 
					 * ### Record buffering options
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 *\code{.unparsed}
 | 
					 *\code{.unparsed}
 | 
				
			||||||
 *     pulse.min.frag = 256/48000             # 5ms
 | 
					 *     pulse.min.frag = 128/48000             # 2.6ms
 | 
				
			||||||
 *\endcode
 | 
					 *\endcode
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 * The minimum allowed size of the capture buffer before it is sent to a client.
 | 
					 * The minimum allowed size of the capture buffer before it is sent to a client.
 | 
				
			||||||
| 
						 | 
					@ -154,7 +154,7 @@
 | 
				
			||||||
 * ### Scheduling options
 | 
					 * ### Scheduling options
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 *\code{.unparsed}
 | 
					 *\code{.unparsed}
 | 
				
			||||||
 *     pulse.min.quantum = 256/48000          # 5ms
 | 
					 *     pulse.min.quantum = 128/48000          # 2.6ms
 | 
				
			||||||
 *\endcode
 | 
					 *\endcode
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 * The minimum quantum (buffer size in samples) to use for pulseaudio clients.
 | 
					 * The minimum quantum (buffer size in samples) to use for pulseaudio clients.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -56,12 +56,12 @@
 | 
				
			||||||
#include "utils.h"
 | 
					#include "utils.h"
 | 
				
			||||||
#include "volume.h"
 | 
					#include "volume.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define DEFAULT_MIN_REQ		"256/48000"
 | 
					#define DEFAULT_MIN_REQ		"128/48000"
 | 
				
			||||||
#define DEFAULT_DEFAULT_REQ	"960/48000"
 | 
					#define DEFAULT_DEFAULT_REQ	"960/48000"
 | 
				
			||||||
#define DEFAULT_MIN_FRAG	"256/48000"
 | 
					#define DEFAULT_MIN_FRAG	"128/48000"
 | 
				
			||||||
#define DEFAULT_DEFAULT_FRAG	"96000/48000"
 | 
					#define DEFAULT_DEFAULT_FRAG	"96000/48000"
 | 
				
			||||||
#define DEFAULT_DEFAULT_TLENGTH	"96000/48000"
 | 
					#define DEFAULT_DEFAULT_TLENGTH	"96000/48000"
 | 
				
			||||||
#define DEFAULT_MIN_QUANTUM	"256/48000"
 | 
					#define DEFAULT_MIN_QUANTUM	"128/48000"
 | 
				
			||||||
#define DEFAULT_FORMAT		"F32"
 | 
					#define DEFAULT_FORMAT		"F32"
 | 
				
			||||||
#define DEFAULT_POSITION	"[ FL FR ]"
 | 
					#define DEFAULT_POSITION	"[ FL FR ]"
 | 
				
			||||||
#define DEFAULT_IDLE_TIMEOUT	"0"
 | 
					#define DEFAULT_IDLE_TIMEOUT	"0"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue