mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	increase the default pool size to 16MB because we now need to keep a lot more memory around due to glitch-free.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2277 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
		
							parent
							
								
									03df08872d
								
							
						
					
					
						commit
						ed36f3129c
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
					@ -46,8 +46,8 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "memblock.h"
 | 
					#include "memblock.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define PA_MEMPOOL_SLOTS_MAX 128
 | 
					#define PA_MEMPOOL_SLOTS_MAX 512
 | 
				
			||||||
#define PA_MEMPOOL_SLOT_SIZE (16*1024)
 | 
					#define PA_MEMPOOL_SLOT_SIZE (32*1024)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define PA_MEMEXPORT_SLOTS_MAX 128
 | 
					#define PA_MEMEXPORT_SLOTS_MAX 128
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -253,7 +253,7 @@ static struct mempool_slot* mempool_allocate_slot(pa_mempool *p) {
 | 
				
			||||||
            slot = (struct mempool_slot*) ((uint8_t*) p->memory.ptr + (p->block_size * idx));
 | 
					            slot = (struct mempool_slot*) ((uint8_t*) p->memory.ptr + (p->block_size * idx));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (!slot) {
 | 
					        if (!slot) {
 | 
				
			||||||
            pa_log_debug("Pool full");
 | 
					            pa_log_info("Pool full");
 | 
				
			||||||
            pa_atomic_inc(&p->stat.n_pool_full);
 | 
					            pa_atomic_inc(&p->stat.n_pool_full);
 | 
				
			||||||
            return NULL;
 | 
					            return NULL;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue