SoundEmitterDevice.IsPlaying
Skip to content
mnscript
bool SoundEmitterDevice.IsPlaying() 

Description ​

Gets whether the sound emitter is playing a sound

Returns ​

bool - True if the sound emitter is playing

Example ​

msc
using Device;
using Console;

SoundEmitterDevice emitter = Device.FindSoundEmitter("My Sound Emitter");
bool isPlaying = emitter.IsPlaying();

if(isPlaying){
    Console.WriteLine("The sound emitter is playing");
}else{
    Console.WriteLine("The sound emitter is not playing");
}