DirectMusic: How many sounds could be loaded at once?
Hi group,
I noticed that I am able to open exactly 509 wav'e files using IDirectMusicLoader::LoadObjectFromFile. This number does not depends on size of wave files (as far as I noticed), but I think it's right - they're streamed anyway. Just 509. So here is a problem: I should implement some managment for creating/destroying segments from waves, but how many of them could be created at once? I can't just pick a number, cause I don't know why 509 files are loaded successfully, and why not 620 for example.
What happening with loader? As an error code I get DMUS_E_LOADER_FAILEDOPEN value.
Please help.
Vytautas
DirectMusic comes up with that number from your sound card's capabilities (DSCAPS) combined with your system memory. You can check the DXCaps Viewer (you'll need to download the DX SDK) to see how many loaded sounds your sound card can support.
Anthony Rufrano
RealityFactory 2 Programmer
RealityFactory 2 Programmer
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement