VECTOR_INIT(ALContext->ActiveAuxSlots);
ALContext->VoiceCount = 0;
+#ifdef __TIZEN__
+ /* Max voices value read from configuration file.
+ * Below Fix is to reduce memory allocation.
+ */
+ ConfigValueUInt(device->DeviceName, NULL, "voices", &ALContext->MaxVoices);
+ if(ALContext->MaxVoices == 0) ALContext->MaxVoices = 256;
+#else
ALContext->MaxVoices = 256;
+#endif
ALContext->Voices = al_calloc(16, ALContext->MaxVoices * sizeof(ALContext->Voices[0]));
}
if(!ALContext || !ALContext->Voices)
device->ClockBase = 0;
device->SamplesDone = 0;
-
device->MaxNoOfSources = 256;
device->AuxiliaryEffectSlotMax = 4;
device->NumAuxSends = MAX_SENDS;
# systems with apps that try to play more sounds than the CPU can handle.
#sources = 256
+## voices:
+# The default value is 256. In this case Memory will be allocated for 256
+# voices, which is not practical.
+# Reduced to 32 from 256. Memory will be allocated for 32 voices.
+# If more voices need to be played this value will be doubled.
+voices = 32
+
## slots:
# Sets the maximum number of Auxiliary Effect Slots an app can create. A slot
# can use a non-negligible amount of CPU time if an effect is set on it even