public void Handle(AudioEffectPlay message) { this.log.Info("Play audio FX {0}", message.FileName); if (message.VolumeLeft.HasValue && message.VolumeRight.HasValue) PlaySound(message.FileName, message.Simultaneous, message.VolumeLeft.Value, message.VolumeRight.Value); else PlaySound(message.FileName, message.Simultaneous); }
public void Handle(AudioEffectPlay message) { if (CheckFile(message, FileTypes.AudioEffect, message.FileName)) this.main.Handle(message); }