audio_emitter_get_bus

This function returns the bus that an audio emitter is connected to.

By default audio emitters are connected to the main audio bus, accessed through audio_bus_main. If the emitter had a different audio bus assigned using audio_emitter_bus, it will return that bus's struct.

 

Syntax:

audio_emitter_get_bus(emitter);

ArgumentTypeDescription
emitterAudio Emitter IDThe emitter to get the bus for

 

Returns:

AudioBus Struct

 

Example:

var bus = audio_emitter_get_bus(emitter);
show_debug_message(bus);

The above code first stores the bus assigned to an emitter in a temporary variable bus. It then displays the contents of the returned AudioBus Struct struct in a debug message.