natiny.audio.listener_create

Lua
natiny.audio.listener_create() -> listener

Creates a listener entity and makes it the active listener.

Returns

Type Description
number Listener handle, also usable as an entity handle; raises an error on failure

Example

Lua
local listener = natiny.audio.listener_create()