Ticket #231: period_size.diff
File period_size.diff, 613 bytes (added by , 11 years ago) |
---|
-
lib/unipcm.c
271 271 if (periods > 3) periods = ((periods - 3) /3) * 3; 272 272 if (!periods) periods = periods_min*new_channels; 273 273 274 // assure 512 samples at least 275 #define PERIOD_SIZE_MIN 512 276 if (period_size < PERIOD_SIZE_MIN) { 277 period_bytes = period_bytes / period_size * PERIOD_SIZE_MIN; 278 period_size = PERIOD_SIZE_MIN; 279 } 280 274 281 if (DebugMode) { 275 282 printf("periods min = %i\n",periods_min); 276 283 printf("period_size = %i\n",period_size);