Method: Discordrb::Voice::Encoder#encode
- Defined in:
- lib/discordrb/voice/encoder.rb
#encode(buffer) ⇒ String
Encodes the given buffer using opus.
46 47 48 |
# File 'lib/discordrb/voice/encoder.rb', line 46 def encode(buffer) @opus.encode(buffer, 1920) end |