CRI ADX  Last Updated: 2024-07-17 10:47 p
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.
To receive a notification, register a callback function with the criAtomEx_SetVoiceEventCallback function.
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.