audio_get_listener_count

Returns the number of available listeners for the target platform.

Syntax:

audio_get_listener_count();


Returns: Real


Description

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.


Example:

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.


Back: Audio Listeners
Next: audio_get_listener_info
© Copyright YoYo Games Ltd. 2015 All Rights Reserved