Class: Discorb::Voice::Source Abstract
- Inherits:
-
Object
- Object
- Discorb::Voice::Source
- Defined in:
- lib/discorb/voice/source.rb
Overview
This class is abstract.
The source of audio data.
Instance Method Summary collapse
-
#cleanup ⇒ Object
Clean up the source.
-
#io ⇒ #read
The audio ogg stream.
Instance Method Details
#cleanup ⇒ Object
Clean up the source. This does nothing by default.
25 26 27 |
# File 'lib/discorb/voice/source.rb', line 25 def cleanup # noop end |
#io ⇒ #read
The audio ogg stream. This MUST be implemented by subclasses.
17 18 19 |
# File 'lib/discorb/voice/source.rb', line 17 def io raise NotImplementedError end |