//private readonly SpeechAudioFormatInfo _audioFormat = new SpeechAudioFormatInfo( // EncodingFormat.Pcm, // 48000, // 16, // 2, // 320 * (1024 / 8), // 32, // new byte[0]); public SongAnnouncer(IJukebox jukebox, IMediaPlayer mediaPlayer) { this._jukebox = jukebox; this._mediaPlayer = mediaPlayer; this._jukebox.SongStarting += _jukebox_SongStarting; }
public void Dispatch(JukeboxCommand cmd) { var player = GetCurrentPlayer(); if (player == null) { return; } if (cmd == JukeboxCommand.PlayAfterPaused) { if (_wasPaused) { cmd = JukeboxCommand.Play; } else { return; } } _wasPaused = (cmd == JukeboxCommand.Pause && player.IsPlaying); player.PerformAction(cmd); _lastJukebox = player; }
public ClientProxy(dynamic clients, IJukebox jukebox) { this._clients = clients; this._jukebox = jukebox; this._jukebox.SongStarted += _mediaServer_SongStarted; }
public void Dispatch(JukeboxCommand cmd) { var player = GetCurrentPlayer(); if (player == null) return; if (cmd == JukeboxCommand.PlayAfterPaused) { if (_wasPaused) cmd = JukeboxCommand.Play; else return; } _wasPaused = (cmd == JukeboxCommand.Pause && player.IsPlaying); player.PerformAction(cmd); _lastJukebox = player; }
public MusicHubBot( IJukebox jukebox, ILibraryRepository libraryRepository, IUserRepository userRepository, IMediaPlayer mediaPlayer, ISongRepository songRepository, IMetadataService metadataService, IKernel kernel, SongSpider spider) { _jukebox = jukebox; _userRepository = userRepository; _libraryRepository = libraryRepository; _mediaPlayer = mediaPlayer; _libraryRepository = libraryRepository; _kernel = kernel; _spider = spider; _jukebox.SongStarted += _jukebox_SongStarted; InitializeChatCommandProcessors(); }
public Stop(IJukebox jukebox) { _jukebox = jukebox; }
public void Add(IJukebox jukebox) { _jukeboxes.Add(jukebox); }
public AddLibrary(IUserRepository userRepository, IJukebox jukebox) { this._userRepository = userRepository; this._jukebox = jukebox; }
public EventDispatcher(IJukebox[] jukeboxes) { this.Jukeboxes = jukeboxes; }
public ListLibraries(IUserRepository userRepository, IJukebox jukebox) { _jukebox = jukebox; _userRepository = userRepository; }
public Love(IJukebox jukebox, IUserRepository userRepository) { _jukebox = jukebox; _userRepository = userRepository; }
public DeleteLibrary(IUserRepository userRepository, IJukebox jukebox) { _jukebox = jukebox; _userRepository = userRepository; }
public Hate(IUserRepository userRepository, IJukebox jukebox) { _userRepository = userRepository; _jukebox = jukebox; }
public Play(IJukebox jukebox) { this._jukebox = jukebox; }