≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Preloading sounds, addSoundSourceFromMemory and memory usage
Posted by:
(you are not logged in)
Enter the missing letter in: "Internat?onal"
(you are not logged in)
Text:
[quote][b]mvhooren[/b] wrote: Our game has over 700 sound effects that need to be pre-loaded during the startup sequence of the game. I used to do this by calling play2D on all of them with the startPaused and track flags set to true. However, on older hardware this takes about 30 seconds. To reduce the loading time, I combined the sound effects into several large package files. I then load a package file into memory and call addSoundSourceFromMemory for each file in the package. Now the problem is that using this method causes the memory usage of irrklang to double compared to what I was doing before. Apparently irrklang makes copies of the PCM data when calling play2D in combination with addSoundSourceFromMemory. This should realy not be necessary since the source files are simple .wav files and already contain PCM data. This even happens if I set the streamMode of play2D to ESM_STREAMING. Also, I couldn't find a way to release the ISoundSource objects after the sounds were loaded using play2D. Is there any way to load sound files from packaged data files without doubling the memory usage?[/quote]
Possible Codes
Feature
Code
Link
[url] www.example.com [/url]
Bold
[b]bold text[/b]
Image
[img]http://www.example.com/image.jpg[/img]
Quote
[quote]quoted text[/quote]
Code
[code]source code[/code]
Emoticons
Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact