0
0

Hi there!

I have a few questions regarding the Sound::getMemoryInfo function and streaming sounds, to which I can’t find the answer in the documentation. Maybe you will be able to help… 😉

1- Is one streaming buffer created for each streaming sound? Or are they shared or reused somehow?
2- Is the stream buffer size included in the memory size reported by Sound::getMemoryInfo right after sound creation?
3- Does the info reported by Sound::getMemoryInfo vary after the sound has been created? If so, how?

Thank you very much for your time!

  • You must to post comments
0
0

[quote:390q9766]Is one streaming buffer created for each streaming sound? Or are they shared or reused somehow?[/quote:390q9766]
Each stream has its own file handle and stream buffer as each stream (using the same file or otherwise) could be at a different part of the file.

[quote:390q9766]Is the stream buffer size included in the memory size reported by Sound::getMemoryInfo right after sound creation?[/quote:390q9766]
Yes the stream buffer should be included, but a more precise report of memory can be achieved by using Memory_GetStats before and after the create sound checking the difference in ‘currentallocated’.

[quote:390q9766]Does the info reported by Sound::getMemoryInfo vary after the sound has been created? [/quote:390q9766]
All stream related memory should be allocated up front (createSound time), so no.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.