audio_get_listener_count


描述

Certain target platforms permit more than one listener, so it is important that you know how many the target has before changing or using different listeners. This function will return the number of listeners available.


语法:

audio_get_listener_count();


Returns:

实数


例如:

global.listener_num= audio_get_listener_count();

The above code gets the number of available listeners and stores the return value in a global variable.