comparison ALmixer.h @ 77:40078d025b73

Fixed stupid inverted logic bug with ALMIXER_DISABLE_PREDECODED_PRECOMPUTE_BUFFER_SIZE_OPTIMIZATION. I meant for this optimization to be on by default, but it was off. I noticed really slow loading for loadSound on a 5 min mp3 file on Android. (Nobody should be doing this.) The default was hitting the 1k buffer size. I decided to up the default to 4k, but now that the optimization is enabled, it generally won't be hit.
author Eric Wing <ewing@coronalabs.com>
date Mon, 13 Aug 2012 16:11:30 -0700
parents 398d1cb12448
children
comparison
equal deleted inserted replaced
76:12e4e093c6e0 77:40078d025b73
508 /* I'm picking a smaller buffer because ALmixer will try to create a new larger buffer 508 /* I'm picking a smaller buffer because ALmixer will try to create a new larger buffer
509 * based on the length of the audio. So creating a large block up-front might just be a waste. 509 * based on the length of the audio. So creating a large block up-front might just be a waste.
510 * However, if my attempts fail for some reason, this buffer size becomes a fallback. 510 * However, if my attempts fail for some reason, this buffer size becomes a fallback.
511 * Having too small of a buffer might cause performance bottlenecks. 511 * Having too small of a buffer might cause performance bottlenecks.
512 */ 512 */
513 #define ALMIXER_DEFAULT_PREDECODED_BUFFERSIZE 1024 513 #define ALMIXER_DEFAULT_PREDECODED_BUFFERSIZE 4096
514 #endif 514 #endif
515 515
516 /** 516 /**
517 * Specifies the maximum number of queue buffers to use for a sound stream. 517 * Specifies the maximum number of queue buffers to use for a sound stream.
518 * Default Queue Buffers must be at least 2. 518 * Default Queue Buffers must be at least 2.