Mercurial > almixer_isolated
comparison ALmixer.h @ 41:e10dd3056782
Added API to check if in interruption.
Added more internal check if in interruption checks.
Fixed pathological sleep disorder on iOS problem...bug was I forgot to convert microseconds to milliseconds in usleep calls which led to very short sleep times and the pathological sleep disorder problem. Thanks so much oto Kapil K. for spotting this problem for me.
author | Eric Wing <ewing . public |-at-| gmail . com> |
---|---|
date | Thu, 23 Jun 2011 17:37:16 -0700 |
parents | 46e82b415520 |
children | 05e5dc4817a4 |
comparison
equal
deleted
inserted
replaced
37:b346b6608eab | 41:e10dd3056782 |
---|---|
380 * (EXPERIMENTAL) Call to notify ALmixer that your device needs to resume from an interruption. | 380 * (EXPERIMENTAL) Call to notify ALmixer that your device needs to resume from an interruption. |
381 * (EXPERIMENTAL) For devices like iOS that need special handling for interruption events like phone calls and alarms, | 381 * (EXPERIMENTAL) For devices like iOS that need special handling for interruption events like phone calls and alarms, |
382 * this function will do the correct platform correct thing to resume from the interruption w.r.t. OpenAL. | 382 * this function will do the correct platform correct thing to resume from the interruption w.r.t. OpenAL. |
383 */ | 383 */ |
384 extern ALMIXER_DECLSPEC void ALMIXER_CALL ALmixer_EndInterruption(void); | 384 extern ALMIXER_DECLSPEC void ALMIXER_CALL ALmixer_EndInterruption(void); |
385 | 385 |
386 /** | |
387 * (EXPERIMENTAL) Call to determine if in an interruption. | |
388 * (EXPERIMENTAL) For devices like iOS that need special handling for interruption events like phone calls and alarms, | |
389 * this function will do the correct platform correct thing to determine if in an interruption. | |
390 */ | |
391 extern ALMIXER_DECLSPEC ALboolean ALmixer_IsInInterruption(void); | |
392 | |
386 | 393 |
387 /** | 394 /** |
388 * This shuts down ALmixer. Please remember to free your ALmixer_Data* instances | 395 * This shuts down ALmixer. Please remember to free your ALmixer_Data* instances |
389 * before calling this method. | 396 * before calling this method. |
390 */ | 397 */ |
490 | 497 |
491 /** | 498 /** |
492 * Specifies the maximum number of queue buffers to use for a sound stream. | 499 * Specifies the maximum number of queue buffers to use for a sound stream. |
493 * Default Queue Buffers must be at least 2. | 500 * Default Queue Buffers must be at least 2. |
494 */ | 501 */ |
495 #define ALMIXER_DEFAULT_QUEUE_BUFFERS 5 | 502 #define ALMIXER_DEFAULT_QUEUE_BUFFERS 12 |
496 /** | 503 /** |
497 * Specifies the number of queue buffers initially filled when first loading a stream. | 504 * Specifies the number of queue buffers initially filled when first loading a stream. |
498 * Default startup buffers should be at least 1. */ | 505 * Default startup buffers should be at least 1. */ |
499 #define ALMIXER_DEFAULT_STARTUP_BUFFERS 2 | 506 #define ALMIXER_DEFAULT_STARTUP_BUFFERS 2 |
500 | 507 |