Skip to main content
cngx-src documentation

CngxAudioHandle

Type Aliascommon/audio

projects/common/audio/inject-audio.ts

Description#

The public audio handle — what injectCngxAudio returns.

An alias for CngxAudioEngine rather than a second interface: the two contracts were member-for-member identical, so a separate declaration was duplication, not indirection. The name is kept because it reads better at call sites (const audio: CngxAudioHandle = injectCngxAudio()), and because the engine contract is the one an override implements.