示例#1
0
        public async Task <bool> PlayMusic0(string key, string fileName, string musicKey = null, double volume = 1, bool isRepeat = false, string musicAddress = null)
        {
            var musicPathBase = CommonConfigHelper.MusicBasePath;

            musicPathBase = @"C:\Program Files\StartGateServer\TLAuto.Machine\" + key + @"\MachinePlugins\Music";
            return(await SendWcfCommandPluginsHelper.InvokerMusic(key + (musicKey.IsNullOrEmpty() ? "" : musicKey), Path.Combine(musicPathBase, fileName), volume, isRepeat, musicAddress ?? MusicItems[0].ServiceAddress));
        }
示例#2
0
 public async Task <bool> PauseMusic0(string key, string musicKey = null, string musicAddress = null)
 {
     return(await SendWcfCommandPluginsHelper.InvokerPauseMusic(key + (musicKey.IsNullOrEmpty() ? "" : musicKey), musicAddress ?? MusicItems[0].ServiceAddress));
 }
示例#3
0
        public async Task PlayTextMusicFromFirstItem(string text)
        {
            await SendWcfCommandPluginsHelper.InvokerTextToMusic(text, MusicItems[0].ServiceAddress);

            OnNotification(new NotificationEventArgs(text));
        }