Using Voice Limits to Monitor Sound Playback Control Processing
You can use the voice event callback function to monitor the voice resource allocation in your application.
As the callback is triggered whenever the voices are allocated or released, the application is notified of the status of the playback resources.
When this issue occurs, check the information passed by this callback. When the sound is played normally, CRIATOMEX_VOICE_EVENT_ALLOCATE (a voice_event member of the CriAtomExVoiceEvent structure) will be passed. However, if a voice is released for any reason, a different value will be passed.