Class: Discorb::Voice::Source Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/discorb/voice/source.rb

Overview

This class is abstract.

The source of audio data.

Instance Method Summary collapse

Instance Method Details

#cleanupObject

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.

Returns:

  • (#read)

    The audio ogg stream.

Raises:

  • (NotImplementedError)


17
18
19
# File 'lib/discorb/voice/source.rb', line 17

def io
  raise NotImplementedError
end