Remove AudioServer API

master
Marrub 2017-09-11 07:00:24 -04:00
parent 2e2adcfef7
commit 71ad2dddd3
1 changed files with 1 additions and 24 deletions

View File

@ -140,30 +140,7 @@ module Vrobot4::Server
# Basis for an audio-enabled server interface.
class AudioServer < Server
# Joins a voice channel, using a message for context.
# @param m [Vrobot4::Server::Message] message for context
def voice_join m
raise NotImplementedError, "AudioServer#voice_join not implemented"
end
# Quits a voice channel, using a message for context.
# @param m [Vrobot4::Server::Message] message for context
def voice_quit m
raise NotImplementedError, "AudioServer#voice_quit not implemented"
end
# Plays an arbitrary audio file in a given context.
# @param m [Vrobot4::Server::Message] message for context
# @param io [IO] audio stream to play
def voice_play m, io
raise NotImplementedError, "AudioServer#voice_play not implemented"
end
# Check if the bot is playing audio in a given context.
# @param m [Vrobot4::Server::Message] message for context
def is_playing? m
raise NotImplementedError, "AudioServer#is_playing? not implemented"
end
## TODO: make API for this
# (see Vrobot4::Server::Server#flags)
def flags